am e3abfef6: am 82f6b16e: Merge "hwui : fix memory leak due to duplicate in shadow cache"

* commit 'e3abfef62b7dcfa3ca44f133b19ed316a33a97c6':
  hwui : fix memory leak due to duplicate in shadow cache
This commit is contained in:
Chris Craik
2015-03-25 16:47:41 +00:00
committed by Android Git Automerger

View File

@@ -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) {