-
Notifications
You must be signed in to change notification settings - Fork 6k
Hooks up framework wide gamut to engine wide gamut #54567
Changes from 3 commits
647a030
67cd751
9a5403d
555c462
0a90ec7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,14 +71,8 @@ DlColor ReadColor(const tonic::DartByteData& byte_data) { | |
| // Invert alpha so 0 initialized buffer has default value; | ||
| float alpha = 1.f - float_data[kColorAlphaIndex]; | ||
| uint32_t colorspace = uint_data[kColorSpaceIndex]; | ||
| (void)colorspace; | ||
| uint32_t encoded_color = | ||
| static_cast<uint8_t>(std::round(alpha * 255.f)) << 24 | // | ||
| static_cast<uint8_t>(std::round(red * 255.f)) << 16 | // | ||
| static_cast<uint8_t>(std::round(green * 255.f)) << 8 | // | ||
| static_cast<uint8_t>(std::round(blue * 255.f)) << 0; | ||
| // TODO(gaaclarke): Pass down color info to DlColor. | ||
| return DlColor(encoded_color); | ||
| return DlColor(alpha, red, green, blue, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shower thought, don't we need to do any color space conversions to RGBA/extend RGBA here? Or should we do that in dispatch based on the destination surface?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The last PR added
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are correct, sir, reintroduced. When's that monorepo coming again? |
||
| static_cast<DlColorSpace>(colorspace)); | ||
| } | ||
| } // namespace | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.