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

Conversation

@bdero
Copy link
Member

@bdero bdero commented Mar 6, 2024

Optimizes out 1-2 points per contour. Improvement to the TessellateConvex changes I made to get StC over the line.

@jonahwilliams
Copy link
Contributor

We'll get more juice out of writing directly to the host buffer instead of into another intermediate vector. We could use an upper bound point estimate to do so: flutter/flutter#133348

@bdero
Copy link
Member Author

bdero commented Mar 6, 2024

Yes for sure. And the reserved size you added for the vector is easily the safe estimate when allocating a region in the HostBuffer (although without this patch, the contour multiplier needs to be 5 in order to be safe).

  output.reserve(polyline.points->size() +
                 (4 * (polyline.contours.size() - 1)));

@bdero bdero changed the title [Impeller] Remove redundant points at the end of contours. [Impeller] Append fewer redundant when bridging triangle strips between contours. Mar 6, 2024
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bdero bdero changed the title [Impeller] Append fewer redundant when bridging triangle strips between contours. [Impeller] Append fewer redundant points when bridging triangle strips between contours. Mar 6, 2024
@bdero bdero added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 6, 2024
@auto-submit auto-submit bot merged commit 44405ae into flutter:main Mar 6, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 6, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Mar 6, 2024
…144710)

flutter/engine@20037e3...44405ae

2024-03-06 [email protected] [Impeller] Append fewer redundant points when bridging triangle strips between contours. (flutter/engine#51232)
2024-03-06 [email protected] [Impeller] Apply padding for alignment when doing HostBuffer::Emplace with a callback (flutter/engine#51221)
2024-03-06 [email protected] [Impeller] Create a new render target with the specified attachment configs when reusing cached render target textures (flutter/engine#51208)

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] 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App e: impeller

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants