diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 14:11:27 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 14:11:27 +0000 |
commit | 9cd20a3f28bdea5e6cb6908b49c0dae80ef9cd30 (patch) | |
tree | 55d75046d64113e05aad6c6d10ff6383adbabc88 /cc/checkerboard_draw_quad.cc | |
parent | 1757b6456de4001bd4bf46ad98cba9420941b5ff (diff) | |
download | chromium_src-9cd20a3f28bdea5e6cb6908b49c0dae80ef9cd30.zip chromium_src-9cd20a3f28bdea5e6cb6908b49c0dae80ef9cd30.tar.gz chromium_src-9cd20a3f28bdea5e6cb6908b49c0dae80ef9cd30.tar.bz2 |
cc: Convert DrawQuad to chromium style.
We leave the methods as methods instead of structifying it in this CL. But the
opaqueRect() helper method on DrawQuad is moved out to the call sites.
DrawQuad::needsBlending() is moved to DrawQuad::ShouldDrawWithBlending()
which combines together various states.
DrawQuad::opaqueRect() is computed in QuadCuller, and is used more cleverly
in ShouldDrawWithBlending().
TBR=aelias
BUG=152337
Review URL: https://chromiumcodereview.appspot.com/11420044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/checkerboard_draw_quad.cc')
-rw-r--r-- | cc/checkerboard_draw_quad.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/checkerboard_draw_quad.cc b/cc/checkerboard_draw_quad.cc index c8e3021..709bade 100644 --- a/cc/checkerboard_draw_quad.cc +++ b/cc/checkerboard_draw_quad.cc @@ -18,7 +18,7 @@ CheckerboardDrawQuad::CheckerboardDrawQuad(const SharedQuadState* sharedQuadStat , m_color(color) { if (SkColorGetA(m_color) < 255) - m_opaqueRect = gfx::Rect(); + opaque_rect_ = gfx::Rect(); } const CheckerboardDrawQuad* CheckerboardDrawQuad::materialCast(const DrawQuad* quad) |