summaryrefslogtreecommitdiffstats
path: root/cc/layer_sorter_unittest.cc
diff options
context:
space:
mode:
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-15 13:26:27 +0000
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-15 13:26:27 +0000
commita8ca2a579b4f1f231dfe39ab6750698147e72768 (patch)
treebe22046d96be6bd39549521e917ea6655bc61955 /cc/layer_sorter_unittest.cc
parentebdeb5bebd42273d6eddb3fadf35fb16707f78b7 (diff)
downloadchromium_src-a8ca2a579b4f1f231dfe39ab6750698147e72768.zip
chromium_src-a8ca2a579b4f1f231dfe39ab6750698147e72768.tar.gz
chromium_src-a8ca2a579b4f1f231dfe39ab6750698147e72768.tar.bz2
Avoid using WebTransformationMatrix::translateRight*
This will make migrating to gfx::Transform simpler. BUG=147395 R=enne@chromium.org Review URL: https://codereview.chromium.org/11361067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_sorter_unittest.cc')
-rw-r--r--cc/layer_sorter_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/layer_sorter_unittest.cc b/cc/layer_sorter_unittest.cc
index a4a8cee..812bda5 100644
--- a/cc/layer_sorter_unittest.cc
+++ b/cc/layer_sorter_unittest.cc
@@ -65,8 +65,8 @@ TEST(LayerSorterTest, RightAngleOverlap)
// Two layers forming a right angle with a perspective viewing transform.
WebTransformationMatrix leftFaceMatrix;
+ leftFaceMatrix.translate3d(-1, 0, -5);
leftFaceMatrix.rotate3d(0, 1, 0, -90);
- leftFaceMatrix.translateRight3d(-1, 0, -5);
leftFaceMatrix.translate(-1, -1);
LayerShape leftFace(2, 2, perspectiveMatrix * leftFaceMatrix);
WebTransformationMatrix frontFaceMatrix;
@@ -95,8 +95,8 @@ TEST(LayerSorterTest, IntersectingLayerOverlap)
LayerShape frontFace(2, 2, perspectiveMatrix * frontFaceMatrix);
WebTransformationMatrix throughMatrix;
+ throughMatrix.translate3d(0, 0, -4);
throughMatrix.rotate3d(0, 1, 0, 45);
- throughMatrix.translateRight3d(0, 0, -4);
throughMatrix.translate(-1, -1);
LayerShape rotatedFace(2, 2, perspectiveMatrix * throughMatrix);
overlapResult = LayerSorter::checkOverlap(&frontFace, &rotatedFace, zThreshold, weight);