diff options
| author | Chris Craik <ccraik@android.com> | 2015-03-25 16:15:11 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-03-25 16:15:12 +0000 |
| commit | 82f6b16e10a116a42e32c99c34fb2d435da21fd5 (patch) | |
| tree | 5987d276af72492cb5317cea7a8a90062e4f76c9 /libs/hwui | |
| parent | ff022cb1bd70fc4c9f973af5afebf51517bda572 (diff) | |
| parent | b159633aa3b91301de108a0b32e4634c72f34d14 (diff) | |
| download | frameworks_base-82f6b16e10a116a42e32c99c34fb2d435da21fd5.zip frameworks_base-82f6b16e10a116a42e32c99c34fb2d435da21fd5.tar.gz frameworks_base-82f6b16e10a116a42e32c99c34fb2d435da21fd5.tar.bz2 | |
Merge "hwui : fix memory leak due to duplicate in shadow cache"
Diffstat (limited to 'libs/hwui')
| -rw-r--r-- | libs/hwui/TessellationCache.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/TessellationCache.cpp b/libs/hwui/TessellationCache.cpp index bc956be..1d6b7cc 100644 --- a/libs/hwui/TessellationCache.cpp +++ b/libs/hwui/TessellationCache.cpp @@ -380,6 +380,7 @@ void TessellationCache::precacheShadows(const Matrix4* drawTransform, const Rect const Vector3& lightCenter, float lightRadius) { ShadowDescription key(casterPerimeter, drawTransform); + if (mShadowCache.get(key)) return; sp<ShadowTask> task = new ShadowTask(drawTransform, localClip, opaque, casterPerimeter, transformXY, transformZ, lightCenter, lightRadius); if (mShadowProcessor == NULL) { |
