blob: ad8c949f27698c90df15663bd109938572611bac [file] [log] [blame]
scroggo6cfce1b2014-12-10 10:23:04 -08001/*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8// Need to include SkTypes before checking SK_BUILD_FOR_ANDROID, so it will be
9// set in the Android framework build.
Mike Kleinc0bd9f92019-04-23 12:05:21 -050010#include "include/core/SkTypes.h"
scroggo6cfce1b2014-12-10 10:23:04 -080011#ifdef SK_BUILD_FOR_ANDROID
12extern bool gSkDebugToStdOut;
13
14// Use a static initializer to set gSkDebugToStdOut to true, sending SkDebugf
15// to stdout.
16class SendToStdOut {
17public:
18 SendToStdOut() {
19 gSkDebugToStdOut = true;
20 }
21};
22
23static SendToStdOut gSendToStdOut;
24#endif // SK_BUILD_FOR_ANDROID