diff options
-rw-r--r-- | gm/gmmain.cpp | 3 | ||||
-rw-r--r-- | tests/skia_test.cpp | 3 |
2 files changed, 2 insertions, 4 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; } diff --git a/tests/skia_test.cpp b/tests/skia_test.cpp index 3d76c3a095..1b5584b6a6 100644 --- a/tests/skia_test.cpp +++ b/tests/skia_test.cpp @@ -127,7 +127,7 @@ int test_main() { } #endif - SkGraphics::Init(); + SkAutoGraphics ag; { SkString header("Skia UnitTests:"); @@ -213,7 +213,6 @@ int test_main() { SkDebugf("\nFinished %d tests, %d failures, %d skipped. (%d internal tests)", toRun, failCount, skipCount, reporter.countTests()); } - SkGraphics::Term(); SkDebugf("\n"); return (failCount == 0) ? 0 : 1; |