RESOLVED FIXED224595
Add a mechanism to dump the PlatformCALayer subtree of a GraphicsLayer, for testing
https://bugs.webkit.org/show_bug.cgi?id=224595
Summary Add a mechanism to dump the PlatformCALayer subtree of a GraphicsLayer, for t...
Tim Horton
Reported 2021-04-15 01:51:28 PDT
Add a mechanism to dump the PlatformCALayer subtree of a GraphicsLayer, for testing
Attachments
Patch (73.80 KB, patch)
2021-04-15 01:53 PDT, Tim Horton
ews-feeder: commit-queue-
Patch (74.57 KB, patch)
2021-04-15 02:56 PDT, Tim Horton
no flags
Patch (86.45 KB, patch)
2021-04-15 13:32 PDT, Tim Horton
no flags
Tim Horton
Comment 1 2021-04-15 01:53:59 PDT
Tim Horton
Comment 2 2021-04-15 01:55:19 PDT
Chances are high that there are iOS rebaselines needed, I haven't run the tests on iOS yet.
Tim Horton
Comment 3 2021-04-15 02:56:44 PDT
Sam Weinig
Comment 4 2021-04-15 08:38:28 PDT
Yay!!
Simon Fraser (smfr)
Comment 5 2021-04-15 11:46:48 PDT
Comment on attachment 426092 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=426092&action=review > Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:4040 > + UNUSED_PARAM(flags); hmm? > Source/WebCore/platform/graphics/ca/PlatformCALayer.h:124 > + virtual PlatformCALayerList sublayersForLogging() = 0; const? > Source/WebCore/rendering/RenderLayerCompositor.cpp:2276 > + frameView.updateLayoutAndStyleIfNeededRecursive(); I feel like there were tests where we explicitly didn't want to update layout here.
Tim Horton
Comment 6 2021-04-15 12:23:08 PDT
(In reply to Simon Fraser (smfr) from comment #5) > Comment on attachment 426092 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=426092&action=review > > > Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:4040 > > + UNUSED_PARAM(flags); > > hmm? Whoops. > > Source/WebCore/platform/graphics/ca/PlatformCALayer.h:124 > > + virtual PlatformCALayerList sublayersForLogging() = 0; > > const? Sure. > > Source/WebCore/rendering/RenderLayerCompositor.cpp:2276 > > + frameView.updateLayoutAndStyleIfNeededRecursive(); > > I feel like there were tests where we explicitly didn't want to update > layout here. The internals caller did it before, so I don't know how that can be.
Tim Horton
Comment 7 2021-04-15 12:36:18 PDT
(In reply to Tim Horton from comment #6) > (In reply to Simon Fraser (smfr) from comment #5) > > Comment on attachment 426092 [details] > > Patch > > > > > Source/WebCore/rendering/RenderLayerCompositor.cpp:2276 > > > + frameView.updateLayoutAndStyleIfNeededRecursive(); > > > > I feel like there were tests where we explicitly didn't want to update > > layout here. > > The internals caller did it before, so I don't know how that can be. Frame did it too :) so many layouts
Tim Horton
Comment 8 2021-04-15 13:32:46 PDT
Simon Fraser (smfr)
Comment 9 2021-04-15 14:42:29 PDT
Comment on attachment 426131 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=426131&action=review > Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:3967 > + ts << indent << "(bounds " << layer->bounds().width() << " " << layer->bounds().height() << ")\n"; size rather than bounds? > Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:3972 > + if (!flags.contains(PlatformLayerTreeAsTextFlags::IgnoreChildren)) { Double negative is a bit hard to read. Maybe the flag should be IncludeChildren?
Tim Horton
Comment 10 2021-04-15 15:59:45 PDT
(In reply to Simon Fraser (smfr) from comment #9) > Comment on attachment 426131 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=426131&action=review > > > Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:3967 > > + ts << indent << "(bounds " << layer->bounds().width() << " " << layer->bounds().height() << ")\n"; > > size rather than bounds? I'm going to leave this be because it matches GraphicsLayer. > > Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:3972 > > + if (!flags.contains(PlatformLayerTreeAsTextFlags::IgnoreChildren)) { > > Double negative is a bit hard to read. Maybe the flag should be > IncludeChildren? This too, mostly because I feel like the double negative is worth not having a flag set by default.
EWS
Comment 11 2021-04-15 16:32:11 PDT
Committed r276085 (236597@main): <https://commits.webkit.org/236597@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 426131 [details].
Ryan Haddad
Comment 12 2021-04-22 17:36:38 PDT
Note You need to log in before you can comment on or make changes to this bug.