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

Unified Diff: gm/gmmain.cpp

Issue 704413002: Cleanup: Use SkAutoGraphics in gm and tests. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | tests/skia_test.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gmmain.cpp
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index da0f38f4e398da182be3b34eb40f9f88d7c8e37b..cd3f03a599d54f0b3da829f62b47acba4a55f389 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -2257,7 +2257,7 @@ int tool_main(int argc, char** argv) {
}
#endif
- SkGraphics::Init();
+ SkAutoGraphics ag;
setSystemPreferences();
GMMain gmmain;
@@ -2474,7 +2474,6 @@ int tool_main(int argc, char** argv) {
delete grFactory;
#endif
- SkGraphics::Term();
return (reportError) ? -1 : 0;
}
« no previous file with comments | « no previous file | tests/skia_test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698