-
Notifications
You must be signed in to change notification settings - Fork 6k
Revert "Make ShaderMaskLayer code builder aware" #35588
Revert "Make ShaderMaskLayer code builder aware" #35588
Conversation
This reverts commit 02f9602.
dnfield
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
|
Is there any further information on this? @CaseyHillers @dnfield @flar |
I'm 99% sure the problems shown in internal testing were due to the missing restore call in the new DL code in SML. Try adding a unit test that has other layers that render after SML and you should see that they are included inside the SML's saveLayer when they should not be. Then add the restore in SML::Paint and it should go away... |
|
Perhaps we should also add some debug code around the Paint call in Container::PaintChildren that makes sure that the restore count is the same before and after calling a layer's Paint method? |
|
I'm not sure how that restore count check will work across a PlatformView layer, but it should probably be OK in the current system as we broadcast all save/restores to all canvases, so whichever leaf canvas returns from the Paint call should have the same restore count as the leaf canvas we had going into the Paint call... |
This reverts commit bd89852.
Perhaps use the |
Yes, but also provide a debugging verification in PaintChildren so that any layer that "rolls its own" is caught early. That's what I was getting at. Some of these layers might involve code outside of our normal control so it can't hurt to have a simple debug check to enforce the condition. |
Reverts #35534
This broke Google tests. Googlers, see b/243217201 before relanding.
This caused visual regressions in what I believe are related to transitions between screens, but I defer to a @flar and @dnfield to root cause this.