diff options
author | Yuqian Li <liyuqian@google.com> | 2017-11-29 09:53:06 -0500 |
---|---|---|
committer | Yuqian Li <liyuqian@google.com> | 2017-11-29 16:10:29 +0000 |
commit | 5ebbc8e5e3630c4c3c133ef78fd308abd2006033 (patch) | |
tree | b7038795c1aaa5fc8e088d21cc6156d2f151b26e /libs/hwui/pipeline/skia/RenderNodeDrawable.cpp | |
parent | 25c3c34c81b38c7afacbbd456236e1bfaaa1e0eb (diff) |
Always draw render node with a non-empty projected display list
(cherry picked from commit f701ad3b4b43ea3c26d5881652a840120fca222d)
Test: tested lockscreen ripple on taimen-eng
Bug: 68859852
Change-Id: I234bba143dd4bbd5e6895dd2534eafb012ea1f16
Diffstat (limited to 'libs/hwui/pipeline/skia/RenderNodeDrawable.cpp')
-rw-r--r-- | libs/hwui/pipeline/skia/RenderNodeDrawable.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/pipeline/skia/RenderNodeDrawable.cpp b/libs/hwui/pipeline/skia/RenderNodeDrawable.cpp index 46d4ae77694e..845acc0fc0b2 100644 --- a/libs/hwui/pipeline/skia/RenderNodeDrawable.cpp +++ b/libs/hwui/pipeline/skia/RenderNodeDrawable.cpp @@ -110,7 +110,8 @@ void RenderNodeDrawable::forceDraw(SkCanvas* canvas) { // We only respect the nothingToDraw check when we are composing a layer. This // ensures that we paint the layer even if it is not currently visible in the // event that the properties change and it becomes visible. - if (!renderNode->isRenderable() || (renderNode->nothingToDraw() && mComposeLayer)) { + if ((mProjectedDisplayList == nullptr && !renderNode->isRenderable()) || + (renderNode->nothingToDraw() && mComposeLayer)) { return; } |