Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: include/core/SkGraphics.h

Issue 790203002: Use SkGraphics::Init to output to stdout (Android) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkGraphics_DEFINED 8 #ifndef SkGraphics_DEFINED
9 #define SkGraphics_DEFINED 9 #define SkGraphics_DEFINED
10 10
11 #include "SkTypes.h" 11 #include "SkTypes.h"
12 12
13 class SK_API SkGraphics { 13 class SK_API SkGraphics {
14 public: 14 public:
15 /** 15 /**
16 * Call this at process initialization time if your environment does not 16 * Call this at process initialization time if your environment does not
17 * permit static global initializers that execute code. Note that 17 * permit static global initializers that execute code. Note that
18 * Init() is not thread-safe. 18 * Init() is not thread-safe.
19 *
20 * On Android, sends output to stdout in addition to logcat.
scroggo 2014/12/10 17:05:59 Downside to this approach is that if someone is us
19 */ 21 */
20 static void Init(); 22 static void Init();
21 23
22 /** 24 /**
23 * Call this to release any memory held privately, such as the font cache. 25 * Call this to release any memory held privately, such as the font cache.
24 */ 26 */
25 static void Term(); 27 static void Term();
26 28
27 /** 29 /**
28 * Return the version numbers for the library. If the parameter is not 30 * Return the version numbers for the library. If the parameter is not
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 public: 148 public:
147 SkAutoGraphics() { 149 SkAutoGraphics() {
148 SkGraphics::Init(); 150 SkGraphics::Init();
149 } 151 }
150 ~SkAutoGraphics() { 152 ~SkAutoGraphics() {
151 SkGraphics::Term(); 153 SkGraphics::Term();
152 } 154 }
153 }; 155 };
154 156
155 #endif 157 #endif
OLDNEW
« no previous file with comments | « no previous file | platform_tools/android/launcher/skia_launcher.cpp » ('j') | src/core/SkGraphics.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698