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

Unified Diff: cc/quads/yuv_video_draw_quad.cc

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/quads/yuv_video_draw_quad.cc
diff --git a/cc/quads/yuv_video_draw_quad.cc b/cc/quads/yuv_video_draw_quad.cc
index abe8d3f37ff1281f0d5704644fa736370f1260a9..d8a4a26dd92339c0784af0715b8b76952acbe269 100644
--- a/cc/quads/yuv_video_draw_quad.cc
+++ b/cc/quads/yuv_video_draw_quad.cc
@@ -71,7 +71,8 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
const gfx::ColorSpace& video_color_space,
float offset,
float multiplier,
- uint32_t bits_per_channel) {
+ uint32_t bits_per_channel,
+ bool require_overlay) {
DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect,
opaque_rect, visible_rect, needs_blending);
this->ya_tex_coord_rect = ya_tex_coord_rect;
@@ -88,6 +89,7 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
this->resource_offset = offset;
this->resource_multiplier = multiplier;
this->bits_per_channel = bits_per_channel;
+ this->require_overlay = require_overlay;
}
const YUVVideoDrawQuad* YUVVideoDrawQuad::MaterialCast(
@@ -110,6 +112,7 @@ void YUVVideoDrawQuad::ExtendValue(
resources.ids[kVPlaneResourceIdIndex]);
value->SetInteger("a_plane_resource_id",
resources.ids[kAPlaneResourceIdIndex]);
+ value->SetBoolean("require_overlay", require_overlay);
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698