| 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 "cc/animation/transform_operations.h" | 5 #include "cc/animation/transform_operations.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ui/gfx/animation/tween.h" | 9 #include "ui/gfx/animation/tween.h" |
| 10 #include "ui/gfx/box_f.h" | 10 #include "ui/gfx/geometry/box_f.h" |
| 11 #include "ui/gfx/geometry/vector3d_f.h" | 11 #include "ui/gfx/geometry/vector3d_f.h" |
| 12 #include "ui/gfx/transform_util.h" | 12 #include "ui/gfx/transform_util.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 | 15 |
| 16 TransformOperations::TransformOperations() | 16 TransformOperations::TransformOperations() |
| 17 : decomposed_transform_dirty_(true) { | 17 : decomposed_transform_dirty_(true) { |
| 18 } | 18 } |
| 19 | 19 |
| 20 TransformOperations::TransformOperations(const TransformOperations& other) { | 20 TransformOperations::TransformOperations(const TransformOperations& other) { |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 decomposed_transform_.reset(new gfx::DecomposedTransform()); | 289 decomposed_transform_.reset(new gfx::DecomposedTransform()); |
| 290 gfx::Transform transform = Apply(); | 290 gfx::Transform transform = Apply(); |
| 291 if (!gfx::DecomposeTransform(decomposed_transform_.get(), transform)) | 291 if (!gfx::DecomposeTransform(decomposed_transform_.get(), transform)) |
| 292 return false; | 292 return false; |
| 293 decomposed_transform_dirty_ = false; | 293 decomposed_transform_dirty_ = false; |
| 294 } | 294 } |
| 295 return true; | 295 return true; |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace cc | 298 } // namespace cc |
| OLD | NEW |