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

Unified Diff: cc/surfaces/surface_aggregator.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/surfaces/surface_aggregator.h
diff --git a/cc/surfaces/surface_aggregator.h b/cc/surfaces/surface_aggregator.h
index ea2b8e6d7a5b4d2370142b5c45648351726f92db..e60eed5ce9504dfb560ec6337aa2ba69563a78e2 100644
--- a/cc/surfaces/surface_aggregator.h
+++ b/cc/surfaces/surface_aggregator.h
@@ -18,6 +18,7 @@
#include "cc/resources/transferable_resource.h"
#include "cc/surfaces/surface_id.h"
#include "cc/surfaces/surfaces_export.h"
+#include "ui/gfx/color_space.h"
namespace cc {
@@ -44,6 +45,10 @@ class CC_SURFACES_EXPORT SurfaceAggregator {
void SetFullDamageForSurface(const SurfaceId& surface_id);
void set_output_is_secure(bool secure) { output_is_secure_ = secure; }
+ // Set the color spaces for the created RenderPasses, which is propagated
+ // to the output surface.
+ void SetOutputColorSpace(const gfx::ColorSpace& output_color_space);
+
private:
struct ClipData {
ClipData() : is_clipped(false) {}
@@ -125,6 +130,7 @@ class CC_SURFACES_EXPORT SurfaceAggregator {
int next_render_pass_id_;
const bool aggregate_only_damaged_;
bool output_is_secure_;
+ gfx::ColorSpace output_color_space_;
using SurfaceToResourceChildIdMap =
std::unordered_map<SurfaceId, int, SurfaceIdHash>;

Powered by Google App Engine
This is Rietveld 408576698