-
Notifications
You must be signed in to change notification settings - Fork 6k
Reland Enable MSAA behind a flag for iOS #33505
Conversation
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.
RSLGTM
| auto surface = std::make_unique<GPUSurfaceMetalSkia>(this, main_context_, MsaaSampleCount::kNone, | ||
| render_to_surface); |
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.
Specifically, in the previous version of this patch I wrote
auto surface = std::make_unique<GPUSurfaceMetalSkia>(this, main_context_, render_to_surface, 1);Which meant render_to_surface was always true, which is the wrong thing to do (and caused the blank screen rendering).
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.
Using the enum everywhere means that wouldn't even compile now.
| return weak_factory->GetWeakPtr(); | ||
| } | ||
|
|
||
| - (void)testMsaaSampleCount { |
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.
Test needs to be updated to use the enum
|
This pull request is not suitable for automatic merging in its current state.
|
Relands #33461
The patch was previously reverted because of a mistake in the embedder code: I had transposed the position of the
render_to_surfaceargument and themsaa_samplesargument, and C++ did an implicit int to bool conversion which broke everything on desktop.I've manually verified that desktop works, and I've switched to using an enum everywhere for the MSAA sample count argument so that the type error won't happen again.
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.