-
Notifications
You must be signed in to change notification settings - Fork 6k
Rename toGpuImage to toImageSync #34504
Conversation
Updates documentation. Makes toImageSync work in software contexts.
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
lib/ui/painting/image_encoding.cc
Outdated
| if (pixmap.colorType() == color_type && pixmap.alphaType() == alpha_type) { | ||
| return SkData::MakeWithCopy(pixmap.addr(), pixmap.computeByteSize()); | ||
| } | ||
| // if (pixmap.colorType() == color_type && pixmap.alphaType() == alpha_type) { |
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.
nit: commented code
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.
Whups. Removed the stray log too.
|
shell/common/rasterizer.cc
Outdated
| bool gpu_available = true; | ||
| delegate_.GetIsGpuDisabledSyncSwitch()->Execute( | ||
| fml::SyncSwitch::Handlers().SetIfTrue( | ||
| [&gpu_available] { gpu_available = false; })); |
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.
Can we put the following logic into SyncSwitch's Handlers? I guess just using SyncSwitch to get the value of gpu_available is not enough.
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.
Yeah I'll have to refactor this. I realized after uploading
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
Updates documentation.
Makes toImageSync work in software contexts.