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

Unified Diff: src/core/SkGraphics.cpp

Issue 1906813002: Call SkGraphics::Init() automatically for Google3 processes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkGraphics.cpp
diff --git a/src/core/SkGraphics.cpp b/src/core/SkGraphics.cpp
index 0273139ad7787fe4920f7d3e9260e42a19b5d595..a2456d808d1e37df0c8a33cec7936b17af3ec2cd 100644
--- a/src/core/SkGraphics.cpp
+++ b/src/core/SkGraphics.cpp
@@ -118,3 +118,8 @@ void SkGraphics::SetFlags(const char* flags) {
flags = nextSemi + 1;
} while (nextSemi);
}
+
+// Call SkGraphics::Init() automatically for Google3 processes.
+#if defined(GOOGLE3)
+ static SkAutoGraphics autoGraphics;
+#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698