aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrContext.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-22 10:57:05 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-22 10:57:05 +0000
commit5f9f2f574fe9b195f5f3e40edeb2e28b673511fd (patch)
treebd72c6a33791bbb30d46483a68e3bc2e10c66fbd /src/gpu/GrContext.cpp
parent936fb954db7bc4c3212a4a104d747b07f496c82a (diff)
Added resource cache debug output to help track changes
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rw-r--r--src/gpu/GrContext.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 49d220f537..b517a54387 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -1899,3 +1899,8 @@ GrTexture* GrContext::applyMorphology(GrTexture* srcTexture,
}
///////////////////////////////////////////////////////////////////////////////
+#if GR_DEBUG
+void GrContext::printCacheStats() const {
+ fTextureCache->printStats();
+}
+#endif