diff options
author | Huihong Luo <huisinro@google.com> | 2021-06-25 21:54:16 -0700 |
---|---|---|
committer | Huihong Luo <huisinro@google.com> | 2021-07-01 11:50:53 -0700 |
commit | ec68b7c973924e98592cd80e9be0690103c66831 (patch) | |
tree | e469755eddb046aa74c98b467f24f6f486c1e88e /libs/hwui/pipeline/skia/SkiaDisplayList.cpp | |
parent | ac57d157da34f34b818611603699e6ec60ab3ae4 (diff) |
Disable Webview Overlay when invisible
Remove Webview overlays when Webview node is set to invisible
Bug: 187292989
Test: play a video in a Webview, toggle visibility for the view, check
existence of a surface control named as "Webview Overlay
SurfaceControl#0"
Change-Id: If47a78a8ae1f7b65b9e7ab983ec72f580d78191a
Diffstat (limited to 'libs/hwui/pipeline/skia/SkiaDisplayList.cpp')
-rw-r--r-- | libs/hwui/pipeline/skia/SkiaDisplayList.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/pipeline/skia/SkiaDisplayList.cpp b/libs/hwui/pipeline/skia/SkiaDisplayList.cpp index 3498f715b455..fcfc4f82abed 100644 --- a/libs/hwui/pipeline/skia/SkiaDisplayList.cpp +++ b/libs/hwui/pipeline/skia/SkiaDisplayList.cpp @@ -47,6 +47,12 @@ void SkiaDisplayList::syncContents(const WebViewSyncData& data) { } } +void SkiaDisplayList::onRemovedFromTree() { + for (auto& functor : mChildFunctors) { + functor->onRemovedFromTree(); + } +} + bool SkiaDisplayList::reuseDisplayList(RenderNode* node) { reset(); node->attachAvailableList(this); |