Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2497)

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2325773003: cc: Plumb the monitor color profile to renderer for rasterization (Closed)
Patch Set: Make public_deps instead of deps Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 7ec16870f33241d6fd2d7218d9951f239a6ca77f..cce8fbf8db35bd8ffdc5d44f2cdbdc8220494ddf 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_ =
@@ -845,7 +846,17 @@ void LayerTreeImpl::SetDeviceScaleFactor(float device_scale_factor) {
return;
device_scale_factor_ = device_scale_factor;
- set_needs_update_draw_properties();
+ // set_needs_update_draw_properties();
enne (OOO) 2016/09/09 17:44:47 ?
ccameron 2016/09/09 17:48:18 Oooooops, I was verifying that the tests would act
+ if (IsActiveTree())
+ 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;
+
if (IsActiveTree())
layer_tree_host_impl_->SetFullViewportDamage();
}

Powered by Google App Engine
This is Rietveld 408576698