aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
Diffstat (limited to 'gm')
-rw-r--r--gm/gmmain.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index da0f38f4e3..cd3f03a599 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;
}