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

Unified Diff: cc/ipc/render_pass_struct_traits.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/ipc/render_pass_struct_traits.h
diff --git a/cc/ipc/render_pass_struct_traits.h b/cc/ipc/render_pass_struct_traits.h
index 124415233ca29242591d90d5a37c90eab52ed552..ee69709baec8443799ff6cd1867a0de2e64c33bf 100644
--- a/cc/ipc/render_pass_struct_traits.h
+++ b/cc/ipc/render_pass_struct_traits.h
@@ -9,6 +9,7 @@
#include "cc/ipc/quads_struct_traits.h"
#include "cc/ipc/render_pass.mojom-shared.h"
#include "cc/quads/render_pass.h"
+#include "ui/gfx/ipc/color/gfx_param_traits.h"
#include "ui/gfx/mojo/transform_struct_traits.h"
namespace mojo {
@@ -46,6 +47,11 @@ struct StructTraits<cc::mojom::RenderPassDataView,
return input->background_filters;
}
+ static const gfx::ColorSpace& color_space(
+ const std::unique_ptr<cc::RenderPass>& input) {
+ return input->color_space;
+ }
+
static bool has_transparent_background(
const std::unique_ptr<cc::RenderPass>& input) {
return input->has_transparent_background;

Powered by Google App Engine
This is Rietveld 408576698