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
This commit is contained in:
Yuqian Li
2017-11-29 09:53:06 -05:00
parent 25c3c34c81
commit 5ebbc8e5e3

View File

@@ -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;
}