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

Unified Diff: cc/ipc/quads_struct_traits.h

Issue 2919863004: Add flag to signal that video frame must be drawn using an overlay. (Closed)
Patch Set: cleanup Created 3 years, 6 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/quads_struct_traits.h
diff --git a/cc/ipc/quads_struct_traits.h b/cc/ipc/quads_struct_traits.h
index ebeb86c7de8b00e44fc2c702af8c869984e4fe83..1a2892f43d7bd34631512cd563d525713bb489b9 100644
--- a/cc/ipc/quads_struct_traits.h
+++ b/cc/ipc/quads_struct_traits.h
@@ -420,6 +420,11 @@ struct StructTraits<cc::mojom::YUVVideoQuadStateDataView, cc::DrawQuad> {
cc::YUVVideoDrawQuad::MaterialCast(&input);
return quad->video_color_space;
}
+ static bool require_overlay(const cc::DrawQuad& input) {
+ const cc::YUVVideoDrawQuad* quad =
+ cc::YUVVideoDrawQuad::MaterialCast(&input);
+ return quad->require_overlay;
+ }
static bool Read(cc::mojom::YUVVideoQuadStateDataView data,
cc::DrawQuad* out);

Powered by Google App Engine
This is Rietveld 408576698