-
Notifications
You must be signed in to change notification settings - Fork 6k
Enable MSAA behind a flag for Android GL, add TODOs for other platforms #32128
Conversation
| /// Setting this value to 0 or 1 disables MSAA. | ||
| /// If it is not 0 or 1, it must be one of 2, 4, 8, or 16. However, if the | ||
| /// GPU does not support the requested sampling value, MSAA will be disabled. | ||
| uint8_t msaa_samples = 0; |
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.
I think this is fine, assuming that we will eventually either remove it entirely or settle on a fixed sample count?
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.
Idea is to leave it disabled for now, yes.
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.
I'd like to easily be able to swtich between 2x and 4x sampling for testing purposes on various devices
jonahwilliams
left a comment
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.
LGTM
|
@blasten @jason-simmons @zanderso fyi. This change is intended to have no effect unless opted into. There is no intent to expose this flag via the tool just yet. It should make it easier to experiment with different AA strategies though. |
Enables MSAA behind a flag for Android GL backend.
Part of flutter/flutter#100392
Takes a sample count as an argument, if greater than 1 try to enable MSAA at that level, ignores invalid values.
Tests for C++ settings, Android Settings, Android GL Context.