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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2735943002: cc: Clarify that color spaces are for raster (Closed)
Patch Set: Rebase (a few times) Created 3 years, 9 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
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index fa6f8add9f3a85eb5e83e5dc305686c9d73844b5..3f72103469824fee4c51f7a632225f7a32231b76 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -485,7 +485,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->SetRasterColorSpace(raster_color_space_);
target_tree->elastic_overscroll()->PushPendingToActive();
target_tree->set_content_source_id(content_source_id());
@@ -937,11 +937,11 @@ void LayerTreeImpl::SetDeviceScaleFactor(float device_scale_factor) {
layer_tree_host_impl_->SetNeedUpdateGpuRasterizationStatus();
}
-void LayerTreeImpl::SetDeviceColorSpace(
- const gfx::ColorSpace& device_color_space) {
- if (device_color_space == device_color_space_)
+void LayerTreeImpl::SetRasterColorSpace(
+ const gfx::ColorSpace& raster_color_space) {
+ if (raster_color_space == raster_color_space_)
return;
- device_color_space_ = device_color_space;
+ raster_color_space_ = raster_color_space;
}
SyncedProperty<ScaleGroup>* LayerTreeImpl::page_scale_factor() {
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698