Chromium Code Reviews| Index: tools/AndroidSkDebugToStdOut.cpp |
| diff --git a/tools/AndroidSkDebugToStdOut.cpp b/tools/AndroidSkDebugToStdOut.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f572688b90c6a4b3cce6460a97e4c5a1fcba2298 |
| --- /dev/null |
| +++ b/tools/AndroidSkDebugToStdOut.cpp |
| @@ -0,0 +1,21 @@ |
| +/* |
| + * Copyright 2014 Google Inc. |
| + * |
| + * Use of this source code is governed by a BSD-style license that can be |
| + * found in the LICENSE file. |
| + */ |
| + |
| +#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; |
|
djsollen
2014/12/09 18:55:41
try...
bool sendToStdOut() {
gSkDebugToStdOut =
|
| +#endif // SK_BUILD_FOR_ANDROID |