summaryrefslogtreecommitdiff
path: root/libs/hwui/RenderNode.h
diff options
context:
space:
mode:
author Nader Jawad <njawad@google.com> 2021-09-08 22:17:15 -0700
committer Nader Jawad <njawad@google.com> 2021-09-09 18:58:17 +0000
commit48f7fabf25f0fb102f9eaac80a831317fb3bf42d (patch)
tree6ade2131500a9cd5f198a69fea79f11e87b59dfd /libs/hwui/RenderNode.h
parentf4e2f279b132154d611c680856c68a4a22dce689 (diff)
Fix aggressive caching of RenderNode snapshot
Updated ImageFilter caching logic to update the snapshot whenever the surface generation ID has changed. Fixes: 199242895 Test: Added test to RenderNodeTests Change-Id: I803dce35ba15a098f14dc02a479abf8b2fbae51f
Diffstat (limited to 'libs/hwui/RenderNode.h')
-rw-r--r--libs/hwui/RenderNode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/RenderNode.h b/libs/hwui/RenderNode.h
index 45a4f6c9c70d..da0476259b97 100644
--- a/libs/hwui/RenderNode.h
+++ b/libs/hwui/RenderNode.h
@@ -396,6 +396,7 @@ private:
* SkImageFilter used to create the mSnapshotResult
*/
sk_sp<SkImageFilter> mTargetImageFilter;
+ uint32_t mTargetImageFilterLayerSurfaceGenerationId = 0;
/**
* Clip bounds used to create the mSnapshotResult