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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user