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 |
| 7 #include <algorithm> |
| 8 |
6 #include "ui/gfx/transform_util.h" | 9 #include "ui/gfx/transform_util.h" |
7 #include "ui/gfx/vector3d_f.h" | 10 #include "ui/gfx/vector3d_f.h" |
8 | 11 |
9 namespace cc { | 12 namespace cc { |
10 | 13 |
11 TransformOperations::TransformOperations() | 14 TransformOperations::TransformOperations() |
12 : decomposed_transform_dirty_(true) { | 15 : decomposed_transform_dirty_(true) { |
13 } | 16 } |
14 | 17 |
15 TransformOperations::TransformOperations(const TransformOperations& other) { | 18 TransformOperations::TransformOperations(const TransformOperations& other) { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 decomposed_transform_.reset(new gfx::DecomposedTransform()); | 194 decomposed_transform_.reset(new gfx::DecomposedTransform()); |
192 gfx::Transform transform = Apply(); | 195 gfx::Transform transform = Apply(); |
193 if (!gfx::DecomposeTransform(decomposed_transform_.get(), transform)) | 196 if (!gfx::DecomposeTransform(decomposed_transform_.get(), transform)) |
194 return false; | 197 return false; |
195 decomposed_transform_dirty_ = false; | 198 decomposed_transform_dirty_ = false; |
196 } | 199 } |
197 return true; | 200 return true; |
198 } | 201 } |
199 | 202 |
200 } // namespace cc | 203 } // namespace cc |
OLD | NEW |