-
Notifications
You must be signed in to change notification settings - Fork 6k
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
base: main
Are you sure you want to change the base?
Conversation
bb74927
to
64f51e3
Compare
The goldens didn't upload for this... not sure why. |
8951c6d
to
6636a34
Compare
lib/gpu/lib/src/render_pass.dart
Outdated
_validate(); | ||
} | ||
|
||
final int x, y, width, height; |
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.
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.
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. I have one doubt here though, validate is a private function of Scissor, how is it accessible outside the class?
c68bcae
to
33cdd6d
Compare
33cdd6d
to
a967f2a
Compare
Added support to set scissors. This resolves issue #157199