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

Unified Diff: cc/ipc/quads_struct_traits.h

Issue 2684993005: (NotForReview) Enable YUV video overlay on Skylake ChromeOS.
Patch Set: rebase to ToT (Mar/27) Created 3 years, 9 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/ipc/quads.mojom ('k') | cc/ipc/quads_struct_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/quads_struct_traits.h
diff --git a/cc/ipc/quads_struct_traits.h b/cc/ipc/quads_struct_traits.h
index ed27b9921cea6a5a3568a12cf4987923e9c558a4..247562d923611fcc051d9e802b4b135e61fd25b7 100644
--- a/cc/ipc/quads_struct_traits.h
+++ b/cc/ipc/quads_struct_traits.h
@@ -21,6 +21,7 @@
#include "cc/quads/tile_draw_quad.h"
#include "cc/quads/yuv_video_draw_quad.h"
#include "ui/gfx/geometry/mojo/geometry_struct_traits.h"
+#include "ui/gfx/mojo/buffer_types_struct_traits.h"
namespace mojo {
@@ -214,6 +215,12 @@ struct StructTraits<cc::mojom::StreamVideoQuadStateDataView, cc::DrawQuad> {
.size_in_pixels[cc::StreamVideoDrawQuad::kResourceIdIndex];
}
+ static const gfx::BufferFormat& format(const cc::DrawQuad& input) {
+ const cc::StreamVideoDrawQuad* quad =
+ cc::StreamVideoDrawQuad::MaterialCast(&input);
+ return quad->format;
+ }
+
static const gfx::Transform& matrix(const cc::DrawQuad& input) {
const cc::StreamVideoDrawQuad* quad =
cc::StreamVideoDrawQuad::MaterialCast(&input);
« no previous file with comments | « cc/ipc/quads.mojom ('k') | cc/ipc/quads_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698