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

Unified Diff: cc/trees/layer_tree_host_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_host_impl.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 848f5b07290721025c0af47271cb9337055307b8..823360633f04fe9430f9d694684ce79921ee45f4 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1323,10 +1323,10 @@ void LayerTreeHostImpl::SetIsLikelyToRequireADraw(
is_likely_to_require_a_draw_ = is_likely_to_require_a_draw;
}
-gfx::ColorSpace LayerTreeHostImpl::GetTileColorSpace() const {
+gfx::ColorSpace LayerTreeHostImpl::GetRasterColorSpace() const {
if (!sync_tree())
return gfx::ColorSpace::CreateSRGB();
- return sync_tree()->device_color_space();
+ return sync_tree()->raster_color_space();
}
void LayerTreeHostImpl::RequestImplSideInvalidation() {
@@ -2379,7 +2379,7 @@ bool LayerTreeHostImpl::InitializeRenderer(
settings_.renderer_settings.texture_id_allocation_chunk_size,
compositor_frame_sink_->capabilities().delegated_sync_points_required,
settings_.renderer_settings.use_gpu_memory_buffer_resources,
- settings_.enable_color_correct_rendering,
+ settings_.enable_color_correct_rasterization,
settings_.renderer_settings.buffer_to_texture_target_map);
// Since the new context may be capable of MSAA, update status here. We don't
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698