-
Notifications
You must be signed in to change notification settings - Fork 6k
Reland (x2) Skwasm overlay optimizations #56067
Reland (x2) Skwasm overlay optimizations #56067
Conversation
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 with nits. Also I suggest adding a regression test for the case that caused the original PR to be reverted
|
||
LayerSlice buildWithOperation(LayerOperation operation) { | ||
final ui.Rect recorderRect = operation.mapRect(cullRect ?? ui.Rect.zero); | ||
final (recorder, canvas) = debugRecorderFactory != null ? debugRecorderFactory!(recorderRect) : defaultRecorderFactory(recorderRect); |
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.
nit: maybe worth pulling the logic to create a recorder (using either the debug factory or the default factory) into its own method
@@ -16,7 +16,7 @@ void main() { | |||
|
|||
void testMain() { |
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.
add a regression test for the bug which caused you to have to revert the original PR?
final SceneSlice slice = sceneSlices[sliceIndex]; | ||
slice.platformViewOcclusionMap.addRect(globalPlatformViewRect); | ||
print('placed platform view. localRect: $rect globalRect: $globalPlatformViewRect sliceIndex: $sliceIndex'); |
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.
delete
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
…157662) flutter/engine@7c5c5fe...c9b8ac9 2024-10-26 skia-flutter-autoroll@skia.org Roll Skia from da6c17329e0b to cadf2538dcde (3 revisions) (flutter/engine#56147) 2024-10-25 30870216+gaaclarke@users.noreply.github.com Removed clamping from dithering (flutter/engine#56140) 2024-10-25 jacksongardner@google.com Reland (x2) Skwasm overlay optimizations (flutter/engine#56067) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC codefu@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This is an attempt to reland flutter/engine#55468 We now defer actually drawing the pictures until the build of the layer slices, so that we can calculate an accurate `cullRect` for the picture recorder This also contains a further optimization for the "simple" rendering case (no platform views) where we don't actually do any unnecessary occlusion calculations.
This is an attempt to reland #55468
We now defer actually drawing the pictures until the build of the layer slices, so that we can calculate an accurate
cullRect
for the picture recorderThis also contains a further optimization for the "simple" rendering case (no platform views) where we don't actually do any unnecessary occlusion calculations.