-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] ensure that srcOver to src conversion takes stroke coverage into account. #54817
Conversation
impeller/aiks/aiks_unittests.cc
Outdated
ASSERT_TRUE(entity.size() >= 1); | ||
ASSERT_TRUE(contents->IsOpaque()); | ||
ASSERT_TRUE(contents->IsOpaque(matrix)); |
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.
Super minor nit: Just IsOpaque({})
?
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.
Done
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. |
…ke coverage into account. (flutter/engine#54817)
…ke coverage into account. (flutter/engine#54817)
…ke coverage into account. (flutter/engine#54817)
…ke coverage into account. (flutter/engine#54817)
…ke coverage into account. (flutter/engine#54817)
…ke coverage into account. (flutter/engine#54817)
…ke coverage into account. (flutter/engine#54817)
…ke coverage into account. (flutter/engine#54817)
…ke coverage into account. (flutter/engine#54817)
…ke coverage into account. (flutter/engine#54817)
…ke coverage into account. (flutter/engine#54817)
…154316) Roll Flutter Engine from 8d248aead383 to f48ecf5b49f6 (40 revisions) flutter/engine@8d248ae...f48ecf5 2024-08-29 [email protected] [Impeller] Use multiple command buffers for blur submission. (flutter/engine#54846) 2024-08-29 [email protected] Roll Skia from 0d8d9d2974fa to e37b6b198016 (1 revision) (flutter/engine#54854) 2024-08-29 [email protected] Remove `--disable-dart-dev` across `flutter/engine`. (flutter/engine#54845) 2024-08-28 [email protected] Roll Fuchsia Test Scripts from vIJGWtHj4Rdku9Ayv... to NWpblL_DFACOx_Spi... (flutter/engine#54852) 2024-08-28 [email protected] [Impeller] fix clip culling with exp canvas. (flutter/engine#54701) 2024-08-28 [email protected] Roll Dart SDK from bc3dad16b2d3 to fed5ce7ea2ad (2 revisions) (flutter/engine#54851) 2024-08-28 [email protected] Roll Skia from d55406ca32e9 to 0d8d9d2974fa (4 revisions) (flutter/engine#54850) 2024-08-28 [email protected] [skwasm] Always do backdrop filter operation even if empty. (flutter/engine#54844) 2024-08-28 [email protected] Migrate`header_guard_check` to `package:test`. (flutter/engine#54811) 2024-08-28 [email protected] Roll Fuchsia GN SDK from OKGFjciA5Vd0TQks4... to ALNKvSVWQSpw1uxPy... (flutter/engine#54848) 2024-08-28 [email protected] Roll Skia from cd3d3daafe55 to d55406ca32e9 (10 revisions) (flutter/engine#54847) 2024-08-28 [email protected] [Impeller] ensure that srcOver to src conversion takes stroke coverage into account. (flutter/engine#54817) 2024-08-28 [email protected] Roll Fuchsia GN SDK from ALNKvSVWQSpw1uxPy... to OKGFjciA5Vd0TQks4... (flutter/engine#54840) 2024-08-28 [email protected] Remove scorecards and other bading we are no longer tracking/links are borked (flutter/engine#54839) 2024-08-28 [email protected] Compile dart2wasm modules using the JS runtime exported compileStreaming (flutter/engine#51488) 2024-08-28 [email protected] Roll Dart SDK from 183b9e21b706 to bc3dad16b2d3 (1 revision) (flutter/engine#54838) 2024-08-28 [email protected] Ignore generated fixture `.dill.deps` files. (flutter/engine#54836) 2024-08-28 6844906[email protected] [fuchsia] use the api-level from gn-sdk (flutter/engine#54740) 2024-08-28 [email protected] [Impeller] port clip stack fixes to new canvas. (flutter/engine#54727) 2024-08-28 [email protected] [Impeller] fall back to path rendering on thick paths. (flutter/engine#54822) 2024-08-28 [email protected] Roll Fuchsia Linux SDK from BCqzoTS_Sz6-AaSii... to ZL8AvfXX5LFIH1LYN... (flutter/engine#54834) 2024-08-28 [email protected] Roll Skia from ca108745b1de to cd3d3daafe55 (1 revision) (flutter/engine#54832) 2024-08-28 [email protected] Roll Dart SDK from 42ddf2278114 to 183b9e21b706 (1 revision) (flutter/engine#54830) 2024-08-28 [email protected] Roll Dart SDK from b519f85c3076 to 42ddf2278114 (1 revision) (flutter/engine#54829) 2024-08-28 [email protected] Roll Fuchsia GN SDK from OKGFjciA5Vd0TQks4... to ALNKvSVWQSpw1uxPy... (flutter/engine#54827) 2024-08-28 [email protected] Roll Skia from 41cb13f65fe6 to ca108745b1de (1 revision) (flutter/engine#54828) 2024-08-28 [email protected] Roll Skia from 259010335a55 to 41cb13f65fe6 (2 revisions) (flutter/engine#54826) 2024-08-28 [email protected] Roll Skia from 505fb55cd044 to 259010335a55 (1 revision) (flutter/engine#54823) 2024-08-28 [email protected] Roll Dart SDK from 8334290a421b to b519f85c3076 (1 revision) (flutter/engine#54821) 2024-08-28 [email protected] Roll Skia from 84e4a69da303 to 505fb55cd044 (1 revision) (flutter/engine#54819) 2024-08-27 [email protected] [Impeller] Increase host buffer arena count to 4. (flutter/engine#54808) 2024-08-27 [email protected] Synchronize accounting for render op depths (flutter/engine#54794) 2024-08-27 [email protected] Fix broken links in `docs/` (flutter/engine#54815) 2024-08-27 [email protected] [Impeller] Don't override user specification on Vulkan validation in unopt. (flutter/engine#54816) 2024-08-27 [email protected] Manual roll Dart SDK from b81b344a194f to 8334290a421b (12 revisions) (flutter/engine#54813) 2024-08-27 [email protected] Roll Skia from 77017d30a455 to 84e4a69da303 (3 revisions) (flutter/engine#54812) 2024-08-27 [email protected] [Impeller] Clarify where to put the metadata in the manifest. (flutter/engine#54814) 2024-08-27 [email protected] [Impeller] Use infinite swapchain present timeouts to avoid logspam. (flutter/engine#54810) 2024-08-27 [email protected] Roll Skia from 2e1eea538014 to 77017d30a455 (2 revisions) (flutter/engine#54809) 2024-08-27 [email protected] Roll Skia from a2e2eb292492 to 2e1eea538014 (4 revisions) (flutter/engine#54806) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from BCqzoTS_Sz6- to ZL8AvfXX5LFI If this roll has caused a breakage, revert this CL and stop the roller using the controls here: ... --------- Co-authored-by: Zachary Anderson <[email protected]>
…lutter#154316) Roll Flutter Engine from 8d248aead383 to f48ecf5b49f6 (40 revisions) flutter/engine@8d248ae...f48ecf5 2024-08-29 [email protected] [Impeller] Use multiple command buffers for blur submission. (flutter/engine#54846) 2024-08-29 [email protected] Roll Skia from 0d8d9d2974fa to e37b6b198016 (1 revision) (flutter/engine#54854) 2024-08-29 [email protected] Remove `--disable-dart-dev` across `flutter/engine`. (flutter/engine#54845) 2024-08-28 [email protected] Roll Fuchsia Test Scripts from vIJGWtHj4Rdku9Ayv... to NWpblL_DFACOx_Spi... (flutter/engine#54852) 2024-08-28 [email protected] [Impeller] fix clip culling with exp canvas. (flutter/engine#54701) 2024-08-28 [email protected] Roll Dart SDK from bc3dad16b2d3 to fed5ce7ea2ad (2 revisions) (flutter/engine#54851) 2024-08-28 [email protected] Roll Skia from d55406ca32e9 to 0d8d9d2974fa (4 revisions) (flutter/engine#54850) 2024-08-28 [email protected] [skwasm] Always do backdrop filter operation even if empty. (flutter/engine#54844) 2024-08-28 [email protected] Migrate`header_guard_check` to `package:test`. (flutter/engine#54811) 2024-08-28 [email protected] Roll Fuchsia GN SDK from OKGFjciA5Vd0TQks4... to ALNKvSVWQSpw1uxPy... (flutter/engine#54848) 2024-08-28 [email protected] Roll Skia from cd3d3daafe55 to d55406ca32e9 (10 revisions) (flutter/engine#54847) 2024-08-28 [email protected] [Impeller] ensure that srcOver to src conversion takes stroke coverage into account. (flutter/engine#54817) 2024-08-28 [email protected] Roll Fuchsia GN SDK from ALNKvSVWQSpw1uxPy... to OKGFjciA5Vd0TQks4... (flutter/engine#54840) 2024-08-28 [email protected] Remove scorecards and other bading we are no longer tracking/links are borked (flutter/engine#54839) 2024-08-28 [email protected] Compile dart2wasm modules using the JS runtime exported compileStreaming (flutter/engine#51488) 2024-08-28 [email protected] Roll Dart SDK from 183b9e21b706 to bc3dad16b2d3 (1 revision) (flutter/engine#54838) 2024-08-28 [email protected] Ignore generated fixture `.dill.deps` files. (flutter/engine#54836) 2024-08-28 6844906[email protected] [fuchsia] use the api-level from gn-sdk (flutter/engine#54740) 2024-08-28 [email protected] [Impeller] port clip stack fixes to new canvas. (flutter/engine#54727) 2024-08-28 [email protected] [Impeller] fall back to path rendering on thick paths. (flutter/engine#54822) 2024-08-28 [email protected] Roll Fuchsia Linux SDK from BCqzoTS_Sz6-AaSii... to ZL8AvfXX5LFIH1LYN... (flutter/engine#54834) 2024-08-28 [email protected] Roll Skia from ca108745b1de to cd3d3daafe55 (1 revision) (flutter/engine#54832) 2024-08-28 [email protected] Roll Dart SDK from 42ddf2278114 to 183b9e21b706 (1 revision) (flutter/engine#54830) 2024-08-28 [email protected] Roll Dart SDK from b519f85c3076 to 42ddf2278114 (1 revision) (flutter/engine#54829) 2024-08-28 [email protected] Roll Fuchsia GN SDK from OKGFjciA5Vd0TQks4... to ALNKvSVWQSpw1uxPy... (flutter/engine#54827) 2024-08-28 [email protected] Roll Skia from 41cb13f65fe6 to ca108745b1de (1 revision) (flutter/engine#54828) 2024-08-28 [email protected] Roll Skia from 259010335a55 to 41cb13f65fe6 (2 revisions) (flutter/engine#54826) 2024-08-28 [email protected] Roll Skia from 505fb55cd044 to 259010335a55 (1 revision) (flutter/engine#54823) 2024-08-28 [email protected] Roll Dart SDK from 8334290a421b to b519f85c3076 (1 revision) (flutter/engine#54821) 2024-08-28 [email protected] Roll Skia from 84e4a69da303 to 505fb55cd044 (1 revision) (flutter/engine#54819) 2024-08-27 [email protected] [Impeller] Increase host buffer arena count to 4. (flutter/engine#54808) 2024-08-27 [email protected] Synchronize accounting for render op depths (flutter/engine#54794) 2024-08-27 [email protected] Fix broken links in `docs/` (flutter/engine#54815) 2024-08-27 [email protected] [Impeller] Don't override user specification on Vulkan validation in unopt. (flutter/engine#54816) 2024-08-27 [email protected] Manual roll Dart SDK from b81b344a194f to 8334290a421b (12 revisions) (flutter/engine#54813) 2024-08-27 [email protected] Roll Skia from 77017d30a455 to 84e4a69da303 (3 revisions) (flutter/engine#54812) 2024-08-27 [email protected] [Impeller] Clarify where to put the metadata in the manifest. (flutter/engine#54814) 2024-08-27 [email protected] [Impeller] Use infinite swapchain present timeouts to avoid logspam. (flutter/engine#54810) 2024-08-27 [email protected] Roll Skia from 2e1eea538014 to 77017d30a455 (2 revisions) (flutter/engine#54809) 2024-08-27 [email protected] Roll Skia from a2e2eb292492 to 2e1eea538014 (4 revisions) (flutter/engine#54806) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from BCqzoTS_Sz6- to ZL8AvfXX5LFI If this roll has caused a breakage, revert this CL and stop the roller using the controls here: ... --------- Co-authored-by: Zachary Anderson <[email protected]>
When computing whether or not an entity can be coerced into src blend from srcOver, take into account that stroke geometries may modulate with alpha to emulate stroke widths less than 1.0.
While we're at it, update several computations to use max basis XY (from flutter/flutter#153451 ) since that can lead to incorrect stroke width computations in the presence of canvas scaling.
Most of the changes update the APIs that used to take a
const Entity& entity
to instead use theconst Matrix& transform
, since that is all we used the entity for.See screeenshots in flutter/flutter#154178 (comment)
Fixes flutter/flutter#154178