-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] implement clear color opt for experimental canvas. #53749
Conversation
impeller/renderer/render_target.cc
Outdated
| return stencil_; | ||
| } | ||
|
|
||
| ColorAttachment& RenderTarget::GetColorAttachment(size_t index) { |
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.
The index is being ignored. You're always going to get 0u.
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.
On second thought, this seems like an unnecessary API change. You can GetColorAttachments to fetch the attachment, modify it as necessary, and then SetColorAttachment.
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.
Yeah good point, I would need to modify the map to not be const though
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.
SetColorAttachment should do the trick right?
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.
Yeah that will work!
…151482) flutter/engine@69075e7...4a2ac0e 2024-07-09 [email protected] Revert 4 Dart rolls (726cb2467 -> ffc8bb004) to recover engine roll (flutter/engine#53778) 2024-07-09 [email protected] Roll Dart SDK from 33b65d2fe034 to 726cb2467f27 (1 revision) (flutter/engine#53776) 2024-07-09 [email protected] Roll Skia from 9a6f8dfb9102 to 46e5bf98158a (1 revision) (flutter/engine#53775) 2024-07-09 49699333+dependabot[bot]@users.noreply.github.com Bump actions/upload-artifact from 4.3.3 to 4.3.4 (flutter/engine#53774) 2024-07-09 [email protected] Roll Skia from ced941fdddc4 to 9a6f8dfb9102 (1 revision) (flutter/engine#53773) 2024-07-09 [email protected] Roll Dart SDK from 0ecada960645 to 33b65d2fe034 (2 revisions) (flutter/engine#53772) 2024-07-09 [email protected] Roll Skia from 9edafde22cb3 to ced941fdddc4 (2 revisions) (flutter/engine#53769) 2024-07-08 [email protected] Roll Dart SDK from 1679aba20a03 to 0ecada960645 (1 revision) (flutter/engine#53767) 2024-07-08 [email protected] [fuchsia][sysmem2] move to sysmem2 protocols (flutter/engine#53138) 2024-07-08 [email protected] [Impeller] Exploit dynamic state in OpenGL for fewer program links. (flutter/engine#53764) 2024-07-08 [email protected] Roll Fuchsia Linux SDK from Em1nantnFXXK8xJH9... to yYs6rINJxWJ8J2vxo... (flutter/engine#53763) 2024-07-08 [email protected] [Impeller] fix incorrect padding/translation in drawVertices with texture coordinates. (flutter/engine#53746) 2024-07-08 [email protected] Roll Skia from c65710d00047 to 9edafde22cb3 (3 revisions) (flutter/engine#53762) 2024-07-08 [email protected] [Impeller] implement clear color opt for experimental canvas. (flutter/engine#53749) 2024-07-08 [email protected] [Impeller] add experimental canvas support to screenshotter. (flutter/engine#53751) 2024-07-08 [email protected] Add a host_debug_unopt local engine config for Windows. (flutter/engine#53734) 2024-07-08 [email protected] Roll Dart SDK from ffc8bb004a64 to 1679aba20a03 (16 revisions) (flutter/engine#53761) 2024-07-08 [email protected] Roll Skia from 38b17b22312d to c65710d00047 (2 revisions) (flutter/engine#53758) 2024-07-08 [email protected] Roll Skia from b2c51b2fe15f to 38b17b22312d (1 revision) (flutter/engine#53757) 2024-07-08 [email protected] Roll Skia from 1f85fb9238aa to b2c51b2fe15f (3 revisions) (flutter/engine#53756) 2024-07-08 [email protected] Roll Skia from f1d06de0ae87 to 1f85fb9238aa (2 revisions) (flutter/engine#53753) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from Em1nantnFXXK to yYs6rINJxWJ8 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 [email protected],[email protected],[email protected] 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
Fixes flutter/flutter#150995
Rather than using a separate state bit, we can use whether the current render pass is active as an indicator for whether or not it is safe to apply the clear color optimization.