diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 19:29:50 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 19:29:50 +0000 |
commit | 1bc93f667548c5a5eb9c90c628dea214ebfbed18 (patch) | |
tree | a3447a61157da9c36fa0ad4f0427eb99f3d57174 /cc/test/layer_test_common.cc | |
parent | 84b8e013503568c3955fa0ddf8461002a5bd9e63 (diff) | |
download | chromium_src-1bc93f667548c5a5eb9c90c628dea214ebfbed18.zip chromium_src-1bc93f667548c5a5eb9c90c628dea214ebfbed18.tar.gz chromium_src-1bc93f667548c5a5eb9c90c628dea214ebfbed18.tar.bz2 |
cc: Turn DrawQuad into a struct-like class with public data members.
We add a SetAll() method that sets everything to keep the compile-time guard
that verifies everything gets set from all appropriate callsites. This replaces
the constructor which now takes no arguments at all.
We will replace the constructor with an overriding SetAll() for
each subclass of DrawQuads and make them into structs as well.
Covered by existing tests.
TBR=aelias
BUG=152337
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/11418047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168460 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 601e834..2156dc8 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->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. |