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