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

Unified Diff: cc/surfaces/surface_aggregator.cc

Issue 2693723002: cc: Move output color space from DrawingFrame to RenderPass (Closed)
Patch Set: Fix typo Created 3 years, 10 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/surfaces/surface_aggregator.cc
diff --git a/cc/surfaces/surface_aggregator.cc b/cc/surfaces/surface_aggregator.cc
index 82bc5003a195841ab83949557d06f72502e2b0d3..cb0742704da8957852b5eb652580a64f84693482 100644
--- a/cc/surfaces/surface_aggregator.cc
+++ b/cc/surfaces/surface_aggregator.cc
@@ -208,7 +208,7 @@ void SurfaceAggregator::HandleSurfaceQuad(
copy_pass->SetAll(remapped_pass_id, source.output_rect, source.output_rect,
source.transform_to_root_target, source.filters,
- source.background_filters,
+ source.background_filters, output_color_space_,
source.has_transparent_background);
MoveMatchingRequests(source.id, &copy_requests, &copy_pass->copy_requests);
@@ -475,7 +475,7 @@ void SurfaceAggregator::CopyPasses(const CompositorFrame& frame,
copy_pass->SetAll(remapped_pass_id, source.output_rect, source.output_rect,
source.transform_to_root_target, source.filters,
- source.background_filters,
+ source.background_filters, output_color_space_,
source.has_transparent_background);
CopyQuadsToPass(source.quad_list, source.shared_quad_state_list,
@@ -848,4 +848,9 @@ void SurfaceAggregator::SetFullDamageForSurface(const SurfaceId& surface_id) {
it->second = 0;
}
+void SurfaceAggregator::SetOutputColorSpace(
+ const gfx::ColorSpace& output_color_space) {
+ output_color_space_ = output_color_space;
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698