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

Unified Diff: cc/ipc/cc_param_traits.cc

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « cc/BUILD.gn ('k') | cc/ipc/cc_param_traits_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « cc/BUILD.gn ('k') | cc/ipc/cc_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698