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/test/layer_test_common.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/test/layer_test_common.cc')
-rw-r--r-- | cc/test/layer_test_common.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc index ba8bc14..601e834 100644 --- a/cc/test/layer_test_common.cc +++ b/cc/test/layer_test_common.cc @@ -38,7 +38,7 @@ void verifyQuadsExactlyCoverRect(const cc::QuadList& quads, for (size_t i = 0; i < quads.size(); ++i) { cc::DrawQuad* quad = quads[i]; - gfx::RectF quadRectF = cc::MathUtil::mapClippedRect(quad->sharedQuadState()->quadTransform, gfx::RectF(quad->quadRect())); + gfx::RectF quadRectF = cc::MathUtil::mapClippedRect(quad->shared_quad_state()->quadTransform, gfx::RectF(quad->rect())); // Before testing for exact coverage in the integer world, assert that rounding // will not round the rect incorrectly. |