Chromium Code Reviews| Index: ui/compositor/compositor.cc |
| diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc |
| index a08204f612aeabd79e75fb50544840835788f396..6b9b3b9c3ecd7bb0cc37958d269d6cd0bb5522f0 100644 |
| --- a/ui/compositor/compositor.cc |
| +++ b/ui/compositor/compositor.cc |
| @@ -271,6 +271,7 @@ void Compositor::SetOutputSurface( |
| // Visibility is reset when the output surface is lost, so update it to match |
|
danakj
2016/09/02 23:03:32
Visibility => Visibility and color space. Or "Disp
hubbe
2016/09/02 23:16:10
Done.
|
| // the Compositor's. |
| context_factory_->SetDisplayVisible(this, host_->visible()); |
| + context_factory_->SetDisplayColorSpace(this, color_space_); |
| } |
| void Compositor::ScheduleDraw() { |
| @@ -340,7 +341,10 @@ void Compositor::SetScaleAndSize(float scale, const gfx::Size& size_in_pixel) { |
| } |
| void Compositor::SetDisplayColorSpace(const gfx::ColorSpace& color_space) { |
| - context_factory_->SetDisplayColorSpace(this, color_space); |
| + color_space_ = color_space; |
| + // Color space is reset when the output surface is lost, so this must also be |
| + // updated then. |
| + context_factory_->SetDisplayColorSpace(this, color_space_); |
| } |
| void Compositor::SetBackgroundColor(SkColor color) { |