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

Unified Diff: cc/quads/stream_video_draw_quad.cc

Issue 1142343008: cc: Rework overlays to not use the ResourceProvider and pass texture size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/stream_video_draw_quad.cc
diff --git a/cc/quads/stream_video_draw_quad.cc b/cc/quads/stream_video_draw_quad.cc
index fb6f728ee2ebaae4c771c66de6763e468b106b2f..2c69afb4a873b5c80ae02816e982a4660cae6a26 100644
--- a/cc/quads/stream_video_draw_quad.cc
+++ b/cc/quads/stream_video_draw_quad.cc
@@ -11,7 +11,9 @@
namespace cc {
-StreamVideoDrawQuad::StreamVideoDrawQuad() : resource_id(0) {}
+StreamVideoDrawQuad::StreamVideoDrawQuad()
+ : resource_id(0), allow_overlay(false) {
+}
void StreamVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
const gfx::Rect& rect,
@@ -32,10 +34,14 @@ void StreamVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
const gfx::Rect& visible_rect,
bool needs_blending,
unsigned resource_id,
+ gfx::Size resource_size_in_pixels,
+ bool allow_overlay,
const gfx::Transform& matrix) {
DrawQuad::SetAll(shared_quad_state, DrawQuad::STREAM_VIDEO_CONTENT, rect,
opaque_rect, visible_rect, needs_blending);
this->resource_id = resource_id;
+ this->resource_size_in_pixels = resource_size_in_pixels;
+ this->allow_overlay = allow_overlay;
this->matrix = matrix;
}

Powered by Google App Engine
This is Rietveld 408576698