Index: cc/quads/stream_video_draw_quad.h |
diff --git a/cc/quads/stream_video_draw_quad.h b/cc/quads/stream_video_draw_quad.h |
index faffd20070aece0516b5b35aba47065775d1b10e..8521b269a029cca9806613df00fa675a49c9ddfc 100644 |
--- a/cc/quads/stream_video_draw_quad.h |
+++ b/cc/quads/stream_video_draw_quad.h |
@@ -21,6 +21,8 @@ class CC_EXPORT StreamVideoDrawQuad : public DrawQuad { |
const gfx::Rect& opaque_rect, |
const gfx::Rect& visible_rect, |
unsigned resource_id, |
+ gfx::Size resource_size_in_pixels, |
+ bool allow_overlay, |
const gfx::Transform& matrix); |
void SetAll(const SharedQuadState* shared_quad_state, |
@@ -29,6 +31,8 @@ class CC_EXPORT StreamVideoDrawQuad : public DrawQuad { |
const gfx::Rect& visible_rect, |
bool needs_blending, |
unsigned resource_id, |
+ gfx::Size resource_size_in_pixels, |
+ bool allow_overlay, |
const gfx::Transform& matrix); |
gfx::Transform matrix; |
@@ -36,6 +40,12 @@ class CC_EXPORT StreamVideoDrawQuad : public DrawQuad { |
static const StreamVideoDrawQuad* MaterialCast(const DrawQuad*); |
ResourceId resource_id() const { return resources.ids[kResourceIdIndex]; } |
+ const gfx::Size& resource_size_in_pixels() const { |
+ return resources.size_in_pixels[kResourceIdIndex]; |
+ } |
+ bool allow_overlay() const { |
+ return resources.allow_overlay[kResourceIdIndex]; |
+ } |
private: |
static const size_t kResourceIdIndex = 0; |