aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tests/skia_test.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/skia_test.cpp b/tests/skia_test.cpp
index b740590798..ecb00374ff 100644
--- a/tests/skia_test.cpp
+++ b/tests/skia_test.cpp
@@ -103,7 +103,10 @@ private:
};
int main (int argc, char * const argv[]) {
- SkAutoGraphics ag;
+#ifdef SK_ENABLE_INST_COUNT
+ gPrintInstCount = true;
+#endif
+ SkGraphics::Init();
bool androidMode = false;
const char* matchStr = NULL;
@@ -166,5 +169,8 @@ int main (int argc, char * const argv[]) {
SkDebugf("Finished %d tests, %d failures, %d skipped.\n",
count, failCount, skipCount);
}
+
+ SkGraphics::Term();
+
return (failCount == 0) ? 0 : 1;
}