Index: cc/ipc/cc_param_traits.cc |
diff --git a/cc/ipc/cc_param_traits.cc b/cc/ipc/cc_param_traits.cc |
index fc734204281f0d63f24c799fc54f2e569e9a7d71..b653c20f747778ea0f7c3de265c96849c44e9a48 100644 |
--- a/cc/ipc/cc_param_traits.cc |
+++ b/cc/ipc/cc_param_traits.cc |
@@ -18,6 +18,7 @@ |
#include "cc/quads/solid_color_draw_quad.h" |
#include "cc/quads/surface_draw_quad.h" |
#include "cc/quads/tile_draw_quad.h" |
+#include "cc/quads/y_video_draw_quad.h" |
#include "cc/quads/yuv_video_draw_quad.h" |
#include "cc/surfaces/surface_id.h" |
#include "third_party/skia/include/core/SkData.h" |
@@ -369,6 +370,9 @@ void ParamTraits<cc::RenderPass>::Write(base::Pickle* m, const param_type& p) { |
case cc::DrawQuad::YUV_VIDEO_CONTENT: |
WriteParam(m, *cc::YUVVideoDrawQuad::MaterialCast(quad)); |
break; |
+ case cc::DrawQuad::Y_VIDEO_CONTENT: |
+ WriteParam(m, *cc::YVideoDrawQuad::MaterialCast(quad)); |
+ break; |
case cc::DrawQuad::INVALID: |
break; |
} |
@@ -474,6 +478,9 @@ bool ParamTraits<cc::RenderPass>::Read(const base::Pickle* m, |
case cc::DrawQuad::YUV_VIDEO_CONTENT: |
draw_quad = ReadDrawQuad<cc::YUVVideoDrawQuad>(m, iter, p); |
break; |
+ case cc::DrawQuad::Y_VIDEO_CONTENT: |
+ draw_quad = ReadDrawQuad<cc::YVideoDrawQuad>(m, iter, p); |
+ break; |
case cc::DrawQuad::INVALID: |
break; |
} |
@@ -561,6 +568,9 @@ void ParamTraits<cc::RenderPass>::Log(const param_type& p, std::string* l) { |
case cc::DrawQuad::YUV_VIDEO_CONTENT: |
LogParam(*cc::YUVVideoDrawQuad::MaterialCast(quad), l); |
break; |
+ case cc::DrawQuad::Y_VIDEO_CONTENT: |
+ LogParam(*cc::YVideoDrawQuad::MaterialCast(quad), l); |
+ break; |
case cc::DrawQuad::INVALID: |
break; |
} |