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

* commit '82f6b16e10a116a42e32c99c34fb2d435da21fd5':
  hwui : fix memory leak due to duplicate in shadow cache
This commit is contained in:
Chris Craik
2015-03-25 16:28:58 +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) {