aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-21 20:42:14 +0000
committerGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-21 20:42:14 +0000
commit54c782c968fa7bb9d54db4d010ebac23168c0ba6 (patch)
treeb093238041a4c71b9be304ba07678da930a7f6ae /include
parentf788feb3f12d08cf945eab65920c491fc435004d (diff)
add SetFlags for command line control
http://codereview.appspot.com/5416047/ M include/core/SkGraphics.h M src/core/SkGraphics.cpp git-svn-id: http://skia.googlecode.com/svn/trunk@2727 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkGraphics.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/core/SkGraphics.h b/include/core/SkGraphics.h
index 17a26116f9..b41da327cf 100644
--- a/include/core/SkGraphics.h
+++ b/include/core/SkGraphics.h
@@ -45,6 +45,16 @@ public:
* draws to be recreated, since they will no longer be in the cache.
*/
static void PurgeFontCache();
+
+ /**
+ * Applications with command line options may pass optional state, such
+ * as cache sizes, here, for instance:
+ * font-cache-limit=12345678
+ *
+ * The flags format is name=value[;name=value...] with no spaces.
+ * This format is subject to change.
+ */
+ static void SetFlags(const char* flags);
private:
/** This is automatically called by SkGraphics::Init(), and must be