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

Conversation

@matanlurey
Copy link
Contributor

@matanlurey matanlurey commented Aug 30, 2023

Closes flutter/flutter#126009.

One major change, as-per @jonahwilliams's feedback, is that I created a helper class called DlVertexPainter, which provides a DrawRect-like API, but just builds a buffer of vertices, resulting into just a single:

// Actually draw.
canvas->DrawVertices(painter.IntoVertices(), DlBlendMode::kSrc, paint);

Also, added test for it, since there is no way to screenshot test to Impeller overlay yet.

Impeller

Screenshot 2023-08-30 at 2 08 51 PM

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.

Its not as much of a help if you do a DlVertices per rectangle. instead you should pack all of your rectangles into a single vertices.

@matanlurey
Copy link
Contributor Author

if you do a DlVertices per rectangle. instead you should pack all of your rectangles into a single vertices

I think you might have seen an earlier commit (I did that just to make sure I was triangle-ing correctly, before refactoring into a single buffer). PTAL again?

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

@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 30, 2023
@auto-submit auto-submit bot merged commit 73e8636 into flutter:main Aug 30, 2023
@matanlurey matanlurey deleted the impeller-performance-overlay-impl branch August 30, 2023 23:16
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 31, 2023
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

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

[Impeller] Performance overlay is broken.

2 participants