summaryrefslogtreecommitdiffstats
path: root/libs/hwui/TextureCache.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-09-08 18:04:33 -0700
committerRomain Guy <romainguy@google.com>2010-09-08 18:04:33 -0700
commita2341a9f6addcd79723965ec5b1a1c5ae0f8bd65 (patch)
treece61e01a0719f9fc52e48be002fe1d57d3af9c68 /libs/hwui/TextureCache.h
parent9aaa8269a3e7291aab84d01c3fc9c744d8f2d2f4 (diff)
downloadframeworks_base-a2341a9f6addcd79723965ec5b1a1c5ae0f8bd65.zip
frameworks_base-a2341a9f6addcd79723965ec5b1a1c5ae0f8bd65.tar.gz
frameworks_base-a2341a9f6addcd79723965ec5b1a1c5ae0f8bd65.tar.bz2
Purge Skia objects from GL caches as needed.
Change-Id: I754c671cf790ad5ae8bf047ad328034217da4ecc
Diffstat (limited to 'libs/hwui/TextureCache.h')
-rw-r--r--libs/hwui/TextureCache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h
index 847d69c..a63789a 100644
--- a/libs/hwui/TextureCache.h
+++ b/libs/hwui/TextureCache.h
@@ -87,6 +87,10 @@ private:
uint32_t mMaxSize;
GLint mMaxTextureSize;
+ /**
+ * Used to access mCache and mSize. All methods are accessed from a single
+ * thread except for remove().
+ */
mutable Mutex mLock;
}; // class TextureCache