Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: cc/layer_tree_host_common_unittest.cc

Issue 11418197: Move temporary MathUtil wrappers to permanent home in gfx::Transform (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/layer_tree_host_common_unittest.cc
diff --git a/cc/layer_tree_host_common_unittest.cc b/cc/layer_tree_host_common_unittest.cc
index 0623a3618f6515298c28824b1a46ae7904ca7c84..8aa39d00ed4e699b996e12f9425a13717ed1edf0 100644
--- a/cc/layer_tree_host_common_unittest.cc
+++ b/cc/layer_tree_host_common_unittest.cc
@@ -2457,7 +2457,7 @@ TEST(LayerTreeHostCommonTest, verifyBackFaceCullingWithoutPreserves3d)
gfx::Transform backfaceMatrix;
backfaceMatrix.Translate(50, 50);
- MathUtil::rotateAxisAngle(&backfaceMatrix, 0, 1, 0, 180);
+ backfaceMatrix.RotateAbout(gfx::Vector3dF::YAxis(), 180);
backfaceMatrix.Translate(-50, -50);
// Having a descendant and opacity will force these to have render surfaces.
@@ -2551,7 +2551,7 @@ TEST(LayerTreeHostCommonTest, verifyBackFaceCullingWithPreserves3d)
gfx::Transform backfaceMatrix;
backfaceMatrix.Translate(50, 50);
- MathUtil::rotateAxisAngle(&backfaceMatrix, 0, 1, 0, 180);
+ backfaceMatrix.RotateAbout(gfx::Vector3dF::YAxis(), 180);
backfaceMatrix.Translate(-50, -50);
// Opacity will not force creation of renderSurfaces in this case because of the
@@ -2637,7 +2637,7 @@ TEST(LayerTreeHostCommonTest, verifyBackFaceCullingWithAnimatingTransforms)
gfx::Transform backfaceMatrix;
backfaceMatrix.Translate(50, 50);
- MathUtil::rotateAxisAngle(&backfaceMatrix, 0, 1, 0, 180);
+ backfaceMatrix.RotateAbout(gfx::Vector3dF::YAxis(), 180);
backfaceMatrix.Translate(-50, -50);
// Make our render surface.
@@ -2712,7 +2712,7 @@ TEST(LayerTreeHostCommonTest, verifyBackFaceCullingWithPreserves3dForFlatteningS
gfx::Transform backfaceMatrix;
backfaceMatrix.Translate(50, 50);
- MathUtil::rotateAxisAngle(&backfaceMatrix, 0, 1, 0, 180);
+ backfaceMatrix.RotateAbout(gfx::Vector3dF::YAxis(), 180);
backfaceMatrix.Translate(-50, -50);
setLayerPropertiesForTesting(parent.get(), identityMatrix, identityMatrix, gfx::PointF(0, 0), gfx::PointF(0, 0), gfx::Size(100, 100), true); // parent transform style is preserve3d.

Powered by Google App Engine
This is Rietveld 408576698