Commit c76aa4c9 authored by noel's avatar noel Committed by Commit bot

Notify RenderView webview() when the device color profile changes

Notify RenderView webview() when the Page color profile changes so
it can update and repaint all color profiled elements on the Page.

Not used as yet: the IPC from the browser-side will be added later
(need to resolve issue 338130, issue 357443 first), so this change
is just more plumbing.

CQ_EXTRA_TRYBOTS=tryserver.blink:linux_blink_rel,linux_blink_dbg
BUG=368663

Review URL: https://codereview.chromium.org/592753003

Cr-Commit-Position: refs/heads/master@{#296605}
parent b49c29b0
...@@ -3683,8 +3683,8 @@ bool RenderViewImpl::SetDeviceColorProfile( ...@@ -3683,8 +3683,8 @@ bool RenderViewImpl::SetDeviceColorProfile(
const std::vector<char>& profile) { const std::vector<char>& profile) {
bool changed = RenderWidget::SetDeviceColorProfile(profile); bool changed = RenderWidget::SetDeviceColorProfile(profile);
if (changed && webview()) { if (changed && webview()) {
// TODO(noel): notify the webview() of the color profile change so it WebVector<char> colorProfile = profile;
// can update and repaint all color profiled page elements. webview()->setDeviceColorProfile(colorProfile);
} }
return changed; return changed;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment