* commit 'e3abfef62b7dcfa3ca44f133b19ed316a33a97c6': 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