Add support to dump font cache texture for debug purposes
R=robertphillips@google.com, bsalomon@google.com
Author: jvanverth@google.com
Review URL: https://codereview.chromium.org/25736002
git-svn-id: http://skia.googlecode.com/svn/trunk@11579 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 9dfe761..6b1efbe 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -642,6 +642,12 @@
this->drawRect(*paint, r);
}
+#ifdef SK_DEVELOPER
+void GrContext::dumpFontCache() const {
+ fFontCache->dump();
+}
+#endif
+
////////////////////////////////////////////////////////////////////////////////
namespace {