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

Unified Diff: cc/base/float_quad_unittest.cc

Issue 1325803002: Apply skew on both axes together rather than sequentially on Compositor thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test for skewY Created 5 years, 3 months 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
« no previous file with comments | « cc/animation/transform_operations_unittest.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/float_quad_unittest.cc
diff --git a/cc/base/float_quad_unittest.cc b/cc/base/float_quad_unittest.cc
index 6d9ce02f86298a5a56a55c4e8b4e16e3b85f961a..64c448c0d5a19a5939e1dc8b02676d0cd4d63865 100644
--- a/cc/base/float_quad_unittest.cc
+++ b/cc/base/float_quad_unittest.cc
@@ -18,8 +18,8 @@ TEST(FloatQuadTest, IsRectilinearTest) {
rectilinear_trans[1].Rotate(90.f);
rectilinear_trans[2].Rotate(180.f);
rectilinear_trans[3].Rotate(270.f);
- rectilinear_trans[4].SkewX(0.00000000001f);
- rectilinear_trans[5].SkewY(0.00000000001f);
+ rectilinear_trans[4].Skew(0.00000000001f, 0.0f);
+ rectilinear_trans[5].Skew(0.0f, 0.00000000001f);
rectilinear_trans[6].Scale(0.00001f, 0.00001f);
rectilinear_trans[6].Rotate(180.f);
rectilinear_trans[7].Scale(100000.f, 100000.f);
@@ -46,8 +46,8 @@ TEST(FloatQuadTest, IsRectilinearTest) {
non_rectilinear_trans[5].Rotate(180.00001f);
non_rectilinear_trans[6].Rotate(269.9999f);
non_rectilinear_trans[7].Rotate(270.0001f);
- non_rectilinear_trans[8].SkewX(0.00001f);
- non_rectilinear_trans[9].SkewY(0.00001f);
+ non_rectilinear_trans[8].Skew(0.00001f, 0.0f);
+ non_rectilinear_trans[9].Skew(0.0f, 0.00001f);
for (int i = 0; i < kNumNonRectilinear; ++i) {
bool clipped = false;
« no previous file with comments | « cc/animation/transform_operations_unittest.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698