• noel's avatar
    Define ViewMsg_ColorProfile and plumb it into RenderWidget · 89949e66
    noel authored
    Define ViewMsg_ColorProfile IPC message and plumb it into renderer
    RenderWidget::SetDeviceColorProfile(). The browser uses the IPC to
    set the renderers screen color profile.
    
    Note SetDeviceColorProfile is overridden by RenderViewImpl, so the
    IPC message data is handled there - it calls the base RenderWidget
    SetDeviceColorProfile, which detects if the color profile changed,
    and stores it in the RenderWidget if so.
    
    If there was a change, the RenderViewImpl informs its webview() so
    the Page contained therein can update / repaint all color profiled
    elements on the Page.
    
    For a diagram of the IPC and procedure call proceedings, including
    layout test support (added in issue 369787), see:
    
      https://crbug.com/368663#c14
    
    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 again just plumbing.
    
    CQ_EXTRA_TRYBOTS=tryserver.blink:mac_blink_rel,mac_blink_dbg
    BUG=368663
    
    Review URL: https://codereview.chromium.org/601273002
    
    Cr-Commit-Position: refs/heads/master@{#297328}
    89949e66
render_widget.cc 78.1 KB