Index: cc/trees/layer_tree_impl.cc |
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc |
index 1376cdf6b5ec4b19aebd7f1168b88c25d401f620..ea600df28e02878dbedd3dd1475413506831332d 100644 |
--- a/cc/trees/layer_tree_impl.cc |
+++ b/cc/trees/layer_tree_impl.cc |
@@ -441,6 +441,7 @@ void LayerTreeImpl::PushPropertiesTo(LayerTreeImpl* target_tree) { |
max_page_scale_factor()); |
target_tree->SetDeviceScaleFactor(device_scale_factor()); |
target_tree->set_painted_device_scale_factor(painted_device_scale_factor()); |
+ target_tree->SetDeviceColorSpace(device_color_space_); |
target_tree->elastic_overscroll()->PushPendingToActive(); |
target_tree->pending_page_scale_animation_ = |
@@ -850,6 +851,13 @@ void LayerTreeImpl::SetDeviceScaleFactor(float device_scale_factor) { |
layer_tree_host_impl_->SetFullViewportDamage(); |
} |
+void LayerTreeImpl::SetDeviceColorSpace( |
+ const gfx::ColorSpace& device_color_space) { |
+ if (device_color_space == device_color_space_) |
+ return; |
+ device_color_space_ = device_color_space; |
+} |
+ |
SyncedProperty<ScaleGroup>* LayerTreeImpl::page_scale_factor() { |
return page_scale_factor_.get(); |
} |