summaryrefslogtreecommitdiffstats
path: root/libs/hwui/GradientCache.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/GradientCache.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/GradientCache.h')
-rw-r--r--libs/hwui/GradientCache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/GradientCache.h b/libs/hwui/GradientCache.h
index 8795920..51a8c01 100644
--- a/libs/hwui/GradientCache.h
+++ b/libs/hwui/GradientCache.h
@@ -82,6 +82,12 @@ private:
uint32_t mSize;
uint32_t mMaxSize;
+
+ /**
+ * Used to access mCache and mSize. All methods are accessed from a single
+ * thread except for remove().
+ */
+ mutable Mutex mLock;
}; // class GradientCache
}; // namespace uirenderer