Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

add test for scaled playback of DL and SkPicture - #27503

Merged
fluttergithubbot merged 1 commit into
flutter-team-archive:masterfrom
flar:scaled-DL-SkP-playback-test
Jul 20, 2021
Merged

fluttergithubbot merged 1 commit into
flutter-team-archive:masterfrom
flar:scaled-DL-SkP-playback-test

Conversation

@flar

@flar flar commented Jul 17, 2021 •

Copy link
Copy Markdown
Contributor

This test should verify the condition that we were seeing when upstream golden tests were running on the "DL enabled by default" patch.

Basically, when we play back shadows under a new transform (i.e. scale) the shadows looked different because they were half processed under one transform and half under another. This was actually a bug in the way we were handling shadows that was fixed by another PR (#27124) in the meantime so now our shadows show up just fine whether we record them in the final CTM or under some other CTM.

There is no fix here, just a new early-catch test to make sure that we continue to meet these conditions that will be expected down the road when further tests are run and that DL behaves under those conditions identically to the way that SkPicture used to behave (where "used to behave" means "since 27124 was fixed but before DL is enabled").

The timeline is along the lines of:

  1. Shadows were recorded in a way that used to misbehave when the transform changed.
  2. DL was recording them in a way that "misbehaved less than that".
  3. Upstream tests would complain when DL was enabled because the 2 misbehaviors didn't match.
  4. 27124 fixes our shadows to not misbehave under various transforms.
  5. Now DL should behave identically to the SkP path despite recording shadows differently.
  6. This PR adds tests to make sure that doesn't break in the future (DL == SkP output under varying CTMs)
    (These tests don't really test 27124 so much as they test the compatibility between the way that DL and SkP record shadows under the new shadow implementation)
  7. Next we can reland "DL by default".

@google-cla google-cla Bot added the cla: yes label Jul 17, 2021
@flar
flar requested a review from gw280 July 17, 2021 04:30
@flar

flar commented Jul 17, 2021

Copy link
Copy Markdown
Contributor Author

FYI, @untp

@flar flar added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Jul 19, 2021
@fluttergithubbot
fluttergithubbot merged commit dd48504 into flutter-team-archive:master Jul 20, 2021
zanderso pushed a commit to flutter/flutter that referenced this pull request Jul 20, 2021
* dd48504 add test for scaled playback of DL and SkPicture (flutter-team-archive/engine#27503)

* 791e2dc Roll Fuchsia Linux SDK from FGuPZEZLt... to 665qcW5C1... (flutter-team-archive/engine#27561)

* dd95642 Roll Skia from fe49b2c6f41b to 946a4cb8acb7 (9 revisions) (flutter-team-archive/engine#27564)

* b477645 Added a test filter for objc tests (flutter-team-archive/engine#27566)

* 6975e55 Roll Fuchsia Mac SDK from 897eI2xwc... to rQOi2N8BM... (flutter-team-archive/engine#27572)

* a0f41b2 Roll Skia from 946a4cb8acb7 to 38a6e5aa1a49 (8 revisions) (flutter-team-archive/engine#27573)

* 024dbab Roll Skia from 38a6e5aa1a49 to 2373b9ed9617 (1 revision) (flutter-team-archive/engine#27574)

* 1898563 Roll Skia from 2373b9ed9617 to 3f6e8d8864bb (2 revisions) (flutter-team-archive/engine#27575)

* ef9ac75 Roll Skia from 3f6e8d8864bb to b5cd95b58fba (2 revisions) (flutter-team-archive/engine#27576)

* 1de3b87 MacOS: Release backbuffer surface when idle (flutter-team-archive/engine#27189)

* a1ed81a Roll Skia from b5cd95b58fba to d37bb6ae7248 (1 revision) (flutter-team-archive/engine#27578)

* 52b976c Extract the prebuilt Dart SDK to a temp directory and then move it after the extraction completes (flutter-team-archive/engine#27569)

* 00da6c3 Roll Fuchsia Linux SDK from 665qcW5C1... to q6H_ZE5Bs... (flutter-team-archive/engine#27581)

* 19f853d Roll Dart SDK from b410651bd18e to f82b36d0b4f0 (5 revisions) (flutter-team-archive/engine#27582)
naudzghebre pushed a commit to naudzghebre/engine that referenced this pull request Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Development

Successfully merging this pull request may close these issues.

3 participants