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 // Needed on Windows to get |M_PI| from <cmath> | 5 // Needed on Windows to get |M_PI| from <cmath> |
6 #ifdef _WIN32 | 6 #ifdef _WIN32 |
7 #define _USE_MATH_DEFINES | 7 #define _USE_MATH_DEFINES |
8 #endif | 8 #endif |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <cmath> | 11 #include <cmath> |
12 #include <limits> | 12 #include <limits> |
13 | 13 |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "cc/animation/transform_operation.h" | 15 #include "cc/animation/transform_operation.h" |
16 #include "cc/animation/transform_operations.h" | 16 #include "cc/animation/transform_operations.h" |
17 #include "ui/gfx/box_f.h" | 17 #include "ui/gfx/geometry/box_f.h" |
18 #include "ui/gfx/transform_util.h" | 18 #include "ui/gfx/transform_util.h" |
19 #include "ui/gfx/vector3d_f.h" | 19 #include "ui/gfx/vector3d_f.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 const SkMScalar kAngleEpsilon = 1e-4f; | 22 const SkMScalar kAngleEpsilon = 1e-4f; |
23 } | 23 } |
24 | 24 |
25 namespace cc { | 25 namespace cc { |
26 | 26 |
27 bool TransformOperation::IsIdentity() const { | 27 bool TransformOperation::IsIdentity() const { |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 return true; | 430 return true; |
431 } | 431 } |
432 case TransformOperation::TransformOperationMatrix: | 432 case TransformOperation::TransformOperationMatrix: |
433 return false; | 433 return false; |
434 } | 434 } |
435 NOTREACHED(); | 435 NOTREACHED(); |
436 return false; | 436 return false; |
437 } | 437 } |
438 | 438 |
439 } // namespace cc | 439 } // namespace cc |
OLD | NEW |