OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <stddef.h> |
| 6 |
5 #include <limits> | 7 #include <limits> |
6 | 8 |
7 #include "base/basictypes.h" | |
8 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
9 #include "cc/animation/transform_operations.h" | 10 #include "cc/animation/transform_operations.h" |
10 #include "cc/test/geometry_test_utils.h" | 11 #include "cc/test/geometry_test_utils.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "ui/gfx/animation/tween.h" | 13 #include "ui/gfx/animation/tween.h" |
13 #include "ui/gfx/geometry/box_f.h" | 14 #include "ui/gfx/geometry/box_f.h" |
14 #include "ui/gfx/geometry/rect_conversions.h" | 15 #include "ui/gfx/geometry/rect_conversions.h" |
15 #include "ui/gfx/geometry/vector3d_f.h" | 16 #include "ui/gfx/geometry/vector3d_f.h" |
16 | 17 |
17 namespace cc { | 18 namespace cc { |
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 | 1520 |
1520 // Scale + Perspective can't. | 1521 // Scale + Perspective can't. |
1521 TransformOperations operations11; | 1522 TransformOperations operations11; |
1522 operations11.AppendScale(2.f, 2.f, 2.f); | 1523 operations11.AppendScale(2.f, 2.f, 2.f); |
1523 operations11.AppendPerspective(1.f); | 1524 operations11.AppendPerspective(1.f); |
1524 EXPECT_FALSE(operations11.ScaleComponent(&scale)); | 1525 EXPECT_FALSE(operations11.ScaleComponent(&scale)); |
1525 } | 1526 } |
1526 | 1527 |
1527 } // namespace | 1528 } // namespace |
1528 } // namespace cc | 1529 } // namespace cc |
OLD | NEW |