| 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <cmath> | 6 #include <cmath> |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/logging.h" |
| 9 #include "cc/animation/transform_operation.h" | 10 #include "cc/animation/transform_operation.h" |
| 10 #include "ui/gfx/box_f.h" | 11 #include "ui/gfx/box_f.h" |
| 11 #include "ui/gfx/vector3d_f.h" | 12 #include "ui/gfx/vector3d_f.h" |
| 12 | 13 |
| 13 namespace { | 14 namespace { |
| 14 const double kAngleEpsilon = 1e-4; | 15 const double kAngleEpsilon = 1e-4; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace cc { | 18 namespace cc { |
| 18 | 19 |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 } else if (!bounds_max.IsEmpty()) { | 287 } else if (!bounds_max.IsEmpty()) { |
| 287 UnionBoxWithZeroScale(&bounds_max); | 288 UnionBoxWithZeroScale(&bounds_max); |
| 288 *bounds = bounds_max; | 289 *bounds = bounds_max; |
| 289 } | 290 } |
| 290 | 291 |
| 291 return true; | 292 return true; |
| 292 } | 293 } |
| 293 case TransformOperation::TransformOperationIdentity: | 294 case TransformOperation::TransformOperationIdentity: |
| 294 *bounds = box; | 295 *bounds = box; |
| 295 return true; | 296 return true; |
| 296 default: | 297 case TransformOperation::TransformOperationRotate: |
| 298 case TransformOperation::TransformOperationSkew: |
| 299 case TransformOperation::TransformOperationPerspective: |
| 300 case TransformOperation::TransformOperationMatrix: |
| 297 return false; | 301 return false; |
| 298 } | 302 } |
| 303 NOTREACHED(); |
| 304 return false; |
| 299 } | 305 } |
| 300 | 306 |
| 301 } // namespace cc | 307 } // namespace cc |
| OLD | NEW |