Added cache stats printout to tests
http://codereview.appspot.com/6495104/
git-svn-id: http://skia.googlecode.com/svn/trunk@5438 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/skia_test.cpp b/tests/skia_test.cpp
index 7913874..5c80a01 100644
--- a/tests/skia_test.cpp
+++ b/tests/skia_test.cpp
@@ -8,6 +8,10 @@
#include "SkGraphics.h"
#include "Test.h"
+#if SK_SUPPORT_GPU
+#include "GrContext.h"
+#endif
+
using namespace skiatest;
// need to explicitly declare this, or we get some weird infinite loop llist
@@ -170,6 +174,16 @@
count, failCount, skipCount);
}
+#if SK_SUPPORT_GPU
+
+#if GR_CACHE_STATS
+ GrContext *gr = GpuTest::GetContext();
+
+ gr->printCacheStats();
+#endif
+
+#endif
+
SkGraphics::Term();
return (failCount == 0) ? 0 : 1;