1cb93a386Sopenharmony_ci/* 2cb93a386Sopenharmony_ci * Copyright 2014 Google Inc. 3cb93a386Sopenharmony_ci * 4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be 5cb93a386Sopenharmony_ci * found in the LICENSE file. 6cb93a386Sopenharmony_ci */ 7cb93a386Sopenharmony_ci 8cb93a386Sopenharmony_ci// Need to include SkTypes before checking SK_BUILD_FOR_ANDROID, so it will be 9cb93a386Sopenharmony_ci// set in the Android framework build. 10cb93a386Sopenharmony_ci#include "include/core/SkTypes.h" 11cb93a386Sopenharmony_ci#ifdef SK_BUILD_FOR_ANDROID 12cb93a386Sopenharmony_ciextern bool gSkDebugToStdOut; 13cb93a386Sopenharmony_ci 14cb93a386Sopenharmony_ci// Use a static initializer to set gSkDebugToStdOut to true, sending SkDebugf 15cb93a386Sopenharmony_ci// to stdout. 16cb93a386Sopenharmony_ciclass SendToStdOut { 17cb93a386Sopenharmony_cipublic: 18cb93a386Sopenharmony_ci SendToStdOut() { 19cb93a386Sopenharmony_ci gSkDebugToStdOut = true; 20cb93a386Sopenharmony_ci } 21cb93a386Sopenharmony_ci}; 22cb93a386Sopenharmony_ci 23cb93a386Sopenharmony_cistatic SendToStdOut gSendToStdOut; 24cb93a386Sopenharmony_ci#endif // SK_BUILD_FOR_ANDROID 25