| 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>;
|
|
|