diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-21 04:02:24 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-21 04:02:24 +0000 |
commit | cb7af7446aedf8f1661049634220893c8bbac22a (patch) | |
tree | a966aff7ca1ef4ca931ccc420504f38190105169 /cc/test/layer_test_common.cc | |
parent | c50b0624b4621ab1f66142fb00cebd1fed0569bb (diff) | |
download | chromium_src-cb7af7446aedf8f1661049634220893c8bbac22a.zip chromium_src-cb7af7446aedf8f1661049634220893c8bbac22a.tar.gz chromium_src-cb7af7446aedf8f1661049634220893c8bbac22a.tar.bz2 |
cc: Turn SharedQuadState into a struct-like class similar to DrawQuads.
SharedQuadState was a struct previously, but required all the data to be passed
to its create() method. This makes the Create() method take no parameters, as
DrawQuads work now. And we add a SetAll() method, similar again to DrawQuad.
We remove the "id" value from ShardQuadState. This shouldn't be needed for
serialization. We can instead just use the pointers in the quads as an id
directly, and compare them against each other to see when we need to create a
new shared quad state. This is sufficient since all quads that share an
instance of SharedQuadState are appended to be adjacent in the quad list.
Covered by existing tests.
TBR=aelias
BUG=152337
Depends on: https://codereview.chromium.org/11411050
Review URL: https://chromiumcodereview.appspot.com/11416088
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168960 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 2156dc8..6b456f8 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->shared_quad_state->quadTransform, gfx::RectF(quad->rect)); + gfx::RectF quadRectF = cc::MathUtil::mapClippedRect(quad->quadTransform(), gfx::RectF(quad->rect)); // Before testing for exact coverage in the integer world, assert that rounding // will not round the rect incorrectly. |