diff options
Diffstat (limited to 'libs/hwui/GradientCache.h')
| -rw-r--r-- | libs/hwui/GradientCache.h | 6 |
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 |
