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

Unified Diff: cc/quads/render_pass.h

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/quads/render_pass.h
diff --git a/cc/quads/render_pass.h b/cc/quads/render_pass.h
index cc87ff674b370248f7878cf0247c33202cc3dea8..274c27ec426610e77830707d0bcfa6b5676fc330 100644
--- a/cc/quads/render_pass.h
+++ b/cc/quads/render_pass.h
@@ -19,6 +19,7 @@
#include "cc/output/filter_operations.h"
#include "cc/quads/draw_quad.h"
#include "cc/quads/largest_draw_quad.h"
+#include "ui/gfx/color_space.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/transform.h"
@@ -84,6 +85,7 @@ class CC_EXPORT RenderPass {
const gfx::Transform& transform_to_root_target,
const FilterOperations& filters,
const FilterOperations& background_filters,
+ const gfx::ColorSpace& color_space,
bool has_transparent_background);
void AsValueInto(base::trace_event::TracedValue* dict) const;
@@ -120,6 +122,9 @@ class CC_EXPORT RenderPass {
// background of the render pass, from behind it.
FilterOperations background_filters;
+ // The color space into which content will be rendered for this render pass.
+ gfx::ColorSpace color_space;
+
// If false, the pixels in the render pass' texture are all opaque.
bool has_transparent_background = true;

Powered by Google App Engine
This is Rietveld 408576698