| Index: cc/trees/layer_tree.cc
|
| diff --git a/cc/trees/layer_tree.cc b/cc/trees/layer_tree.cc
|
| index cf0c3bc4760acdc50ee11f53511f2f8162d980bf..477115b87f042411c975aeb82a45ecf0e7c620a9 100644
|
| --- a/cc/trees/layer_tree.cc
|
| +++ b/cc/trees/layer_tree.cc
|
| @@ -229,6 +229,14 @@ void LayerTree::SetPaintedDeviceScaleFactor(float painted_device_scale_factor) {
|
| SetNeedsCommit();
|
| }
|
|
|
| +void LayerTree::SetDeviceColorSpace(const gfx::ColorSpace& device_color_space) {
|
| + if (inputs_.device_color_space == device_color_space)
|
| + return;
|
| + inputs_.device_color_space = device_color_space;
|
| +
|
| + SetNeedsCommit();
|
| +}
|
| +
|
| void LayerTree::RegisterLayer(Layer* layer) {
|
| DCHECK(!LayerById(layer->id()));
|
| DCHECK(!in_paint_layer_contents_);
|
| @@ -403,6 +411,8 @@ void LayerTree::PushPropertiesTo(LayerTreeImpl* tree_impl) {
|
| tree_impl->set_painted_device_scale_factor(
|
| inputs_.painted_device_scale_factor);
|
|
|
| + tree_impl->SetDeviceColorSpace(inputs_.device_color_space);
|
| +
|
| if (inputs_.pending_page_scale_animation) {
|
| tree_impl->SetPendingPageScaleAnimation(
|
| std::move(inputs_.pending_page_scale_animation));
|
|
|