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

Unified Diff: cc/output/gl_renderer.cc

Issue 2852953003: Use real colorspace for DirectComposition overlays.
Patch Set: rebase Created 3 years, 7 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/output/dc_layer_overlay.cc ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index 201bf720bed11aa7f42034ba12f3029b7423e811..eb3d145ebcd6cb415c77480bb96d04a78d40e156 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -3272,10 +3272,12 @@ void GLRenderer::ScheduleDCLayers() {
dc_layer_overlay.shared_state->opacity, is_clipped, clip_rect,
z_order, transform);
}
- gl_->ScheduleDCLayerCHROMIUM(ids_to_send, texture_ids, contents_rect,
- dc_layer_overlay.background_color,
- dc_layer_overlay.edge_aa_mask, bounds_rect,
- filter);
+ base::Pickle color_space_data;
+ dc_layer_overlay.color_space.Serialize(&color_space_data);
hubbe 2017/06/20 18:23:28 This seems a little weird, shouldn't the gl layer
+ gl_->ScheduleDCLayerCHROMIUM(
+ ids_to_send, texture_ids, contents_rect,
+ dc_layer_overlay.background_color, dc_layer_overlay.edge_aa_mask,
+ bounds_rect, filter, color_space_data.size(), color_space_data.data());
}
// Take the number of copied render passes in this frame, and use 3 times that
« no previous file with comments | « cc/output/dc_layer_overlay.cc ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698