diff options
author | 2016-08-22 21:48:31 +0000 | |
---|---|---|
committer | 2016-08-22 21:48:31 +0000 | |
commit | 24e38ab322a0c396df1c6fe95f3f427d85cd5da1 (patch) | |
tree | 998aca9597a6323b003cd7e0a6e96d3fccd6ba4b /libs/hwui/PathCache.h | |
parent | 834e5ce170a3bb7ef1a87743ec7dda5602d85797 (diff) | |
parent | 4b505376cb1d77de39d12f4f8bc88e111fbbdc5f (diff) |
Merge "Fix native memory leak caused by small HWUI path cache creation"
Diffstat (limited to 'libs/hwui/PathCache.h')
-rw-r--r-- | libs/hwui/PathCache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/PathCache.h b/libs/hwui/PathCache.h index 86c59b532b28..b3614241e40c 100644 --- a/libs/hwui/PathCache.h +++ b/libs/hwui/PathCache.h @@ -306,6 +306,12 @@ private: bool mDebugEnabled; + /** + * Driver allocated 4k/8k/16k memory for small path cache, + * limit the number of PathTexture in case occupy too much memory in hardware. + */ + uint32_t mTexNum; + sp<PathProcessor> mProcessor; Vector<uint32_t> mGarbage; |