diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-07 18:16:24 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-07 18:16:24 +0000 |
commit | 9bf06c7581a762850bd0d25d9f44c52ab6065056 (patch) | |
tree | 5161e42d9d33da4e0b1bae9d131a70bafedc3964 /cc/quads/debug_border_draw_quad.cc | |
parent | 275f3166c46b21eff834e6d63de818a69955a3eb (diff) | |
download | chromium_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/debug_border_draw_quad.cc')
-rw-r--r-- | cc/quads/debug_border_draw_quad.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/quads/debug_border_draw_quad.cc b/cc/quads/debug_border_draw_quad.cc index dc79a22..9c575aa 100644 --- a/cc/quads/debug_border_draw_quad.cc +++ b/cc/quads/debug_border_draw_quad.cc @@ -20,10 +20,10 @@ scoped_ptr<DebugBorderDrawQuad> DebugBorderDrawQuad::Create() { void DebugBorderDrawQuad::SetNew(const SharedQuadState* shared_quad_state, const gfx::Rect& rect, + const gfx::Rect& visible_rect, SkColor color, int width) { gfx::Rect opaque_rect; - gfx::Rect visible_rect = rect; bool needs_blending = SkColorGetA(color) < 255; DrawQuad::SetAll(shared_quad_state, DrawQuad::DEBUG_BORDER, rect, opaque_rect, visible_rect, needs_blending); |