summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2014-06-25 15:58:24 -0700
committerRaph Levien <raph@google.com>2014-06-25 23:02:52 +0000
commit22e41754f6470ff1f4c0e0a56d01f7f555b59e21 (patch)
treefb9a5be4da6e16e05a86c4598bc062b7a9b56c9d /include
parent3d28a3fcebfed4744d1ef0307a8bdc8fc01e364c (diff)
downloadandroid_frameworks_minikin-22e41754f6470ff1f4c0e0a56d01f7f555b59e21.tar.gz
android_frameworks_minikin-22e41754f6470ff1f4c0e0a56d01f7f555b59e21.tar.bz2
android_frameworks_minikin-22e41754f6470ff1f4c0e0a56d01f7f555b59e21.zip
Add purgeCaches() method
Expose a method to purge caches used for TextLayout, useful for low memory conditions. Change-Id: I92f41afe987b7be4af5ca0a0c50fb51be35a2758
Diffstat (limited to 'include')
-rw-r--r--include/minikin/Layout.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/minikin/Layout.h b/include/minikin/Layout.h
index 1b91ad8..e30f2f2 100644
--- a/include/minikin/Layout.h
+++ b/include/minikin/Layout.h
@@ -100,6 +100,9 @@ public:
void getBounds(MinikinRect* rect);
+ // Purge all caches, useful in low memory conditions
+ static void purgeCaches();
+
private:
// Find a face in the mFaces vector, or create a new entry
int findFace(FakedFont face, LayoutContext* ctx);