From a71d3af100baa6756a87f7ef42a0ae5f4cb0991a Mon Sep 17 00:00:00 2001 From: tfarina Date: Fri, 7 Nov 2014 06:12:30 -0800 Subject: Cleanup: Use SkAutoGraphics in gm and tests. BUG=None R=bsalomon@google.com Review URL: https://codereview.chromium.org/704413002 --- tests/skia_test.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/skia_test.cpp') 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; -- cgit v1.2.3