2014-12-10 18:23:04 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/core/SkTypes.h"
|
2014-12-10 18:23:04 +00:00
|
|
|
#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
|