Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flutter GPU] Added support to set Scissor. #56302

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

AthulJoseph27
Copy link
Contributor

@AthulJoseph27 AthulJoseph27 commented Nov 1, 2024

Added support to set scissors. This resolves issue #157199

@AthulJoseph27 AthulJoseph27 changed the title [Flutter ] Added support to set Scissor. [Flutter GPU] Added support to set Scissor. Nov 1, 2024
@bdero
Copy link
Member

bdero commented Nov 1, 2024

The goldens didn't upload for this... not sure why.

lib/gpu/render_pass.h Outdated Show resolved Hide resolved
lib/gpu/lib/src/render_pass.dart Show resolved Hide resolved
lib/gpu/render_pass.cc Outdated Show resolved Hide resolved
lib/gpu/lib/src/render_pass.dart Outdated Show resolved Hide resolved
_validate();
}

final int x, y, width, height;
Copy link
Member

Choose a reason for hiding this comment

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

Renderers will often want to iterate on the scissor bounds over time between draws, so allowing all of these properties to be mutable would be more convenient. Otherwise the user will have to make a mirror data structure to do so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. I have one doubt here though, validate is a private function of Scissor, how is it accessible outside the class?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ⚙️ In Progress
Development

Successfully merging this pull request may close these issues.

3 participants