diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 23:05:01 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 23:05:01 +0000 |
commit | e51444acccf0aeeeed78d0a9795016e26013e1a1 (patch) | |
tree | 358fba3fd6a996a2de9814bd5fd78ab204b5cd7a /cc/test/layer_test_common.cc | |
parent | a269ade545f74e075b8fff7ca5b7f2edf32369d0 (diff) | |
download | chromium_src-e51444acccf0aeeeed78d0a9795016e26013e1a1.zip chromium_src-e51444acccf0aeeeed78d0a9795016e26013e1a1.tar.gz chromium_src-e51444acccf0aeeeed78d0a9795016e26013e1a1.tar.bz2 |
cc: Add PRESUBMIT rule to ban using cc:: inside of namespace cc {...}
This also makes cc/ PRESUBMIT clean for the new check.
The most invasive changes were:
1. Moving the cc/test/paths.h enum into a CCPaths class (named with
CC prefix to clarify this path is for CC since the enum is extending
an enum from base/.
2. Merge ResourcePool::Resource up into ScopedResource which was the
same thing basically.
R=enne
BUG=
Review URL: https://codereview.chromium.org/109263003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/layer_test_common.cc')
-rw-r--r-- | cc/test/layer_test_common.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc index fcd09d4..3ccd0a4 100644 --- a/cc/test/layer_test_common.cc +++ b/cc/test/layer_test_common.cc @@ -32,15 +32,14 @@ static bool CanRectFBeSafelyRoundedToRect(gfx::RectF r) { return false; } -void LayerTestCommon::VerifyQuadsExactlyCoverRect(const cc::QuadList& quads, +void LayerTestCommon::VerifyQuadsExactlyCoverRect(const QuadList& quads, gfx::Rect rect) { - cc::Region remaining = rect; + Region remaining = rect; for (size_t i = 0; i < quads.size(); ++i) { - cc::DrawQuad* quad = quads[i]; + DrawQuad* quad = quads[i]; gfx::RectF quad_rectf = - cc::MathUtil::MapClippedRect(quad->quadTransform(), - gfx::RectF(quad->rect)); + 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. |