summaryrefslogtreecommitdiffstats
path: root/cc/quads/stream_video_draw_quad.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-07 18:16:24 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-07 18:16:24 +0000
commit9bf06c7581a762850bd0d25d9f44c52ab6065056 (patch)
tree5161e42d9d33da4e0b1bae9d131a70bafedc3964 /cc/quads/stream_video_draw_quad.cc
parent275f3166c46b21eff834e6d63de818a69955a3eb (diff)
downloadchromium_src-9bf06c7581a762850bd0d25d9f44c52ab6065056.zip
chromium_src-9bf06c7581a762850bd0d25d9f44c52ab6065056.tar.gz
chromium_src-9bf06c7581a762850bd0d25d9f44c52ab6065056.tar.bz2
cc: Add visible_rect to Draw*Quad::SetNew().
Currently the visible_rect is implicitly set to the quad's |rect| value then later changed by the occlusion/culling code. Instead we want to compute this value up front and set it on the quad when the quad is created. So add it to the SetNew() method. Currently it should always be set to the same value as the |rect|. R=enne BUG=344962 Review URL: https://codereview.chromium.org/185563008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/quads/stream_video_draw_quad.cc')
-rw-r--r--cc/quads/stream_video_draw_quad.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/quads/stream_video_draw_quad.cc b/cc/quads/stream_video_draw_quad.cc
index 0ae3962..a9a75bc 100644
--- a/cc/quads/stream_video_draw_quad.cc
+++ b/cc/quads/stream_video_draw_quad.cc
@@ -19,9 +19,9 @@ scoped_ptr<StreamVideoDrawQuad> StreamVideoDrawQuad::Create() {
void StreamVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
const gfx::Rect& rect,
const gfx::Rect& opaque_rect,
+ const gfx::Rect& visible_rect,
unsigned resource_id,
const gfx::Transform& matrix) {
- gfx::Rect visible_rect = rect;
bool needs_blending = false;
DrawQuad::SetAll(shared_quad_state, DrawQuad::STREAM_VIDEO_CONTENT, rect,
opaque_rect, visible_rect, needs_blending);