OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "platform/animation/CompositorTransformOperations.h" | 5 #include "platform/animation/CompositorTransformOperations.h" |
6 | 6 |
7 #include "ui/gfx/transform.h" | 7 #include "ui/gfx/transform.h" |
8 #include <algorithm> | 8 #include <algorithm> |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 CompositorTransformOperations::CompositorTransformOperations() | 12 CompositorTransformOperations::CompositorTransformOperations() |
13 { | 13 { |
14 } | 14 } |
15 | 15 |
16 CompositorTransformOperations::~CompositorTransformOperations() | |
17 { | |
18 } | |
19 | |
20 const cc::TransformOperations& CompositorTransformOperations::asTransformOperati
ons() const | 16 const cc::TransformOperations& CompositorTransformOperations::asTransformOperati
ons() const |
21 { | 17 { |
22 return m_transformOperations; | 18 return m_transformOperations; |
23 } | 19 } |
24 | 20 |
25 bool CompositorTransformOperations::canBlendWith(const blink::CompositorTransfor
mOperations& other) const | 21 bool CompositorTransformOperations::canBlendWith(const blink::CompositorTransfor
mOperations& other) const |
26 { | 22 { |
27 return m_transformOperations.CanBlendWith(other.m_transformOperations); | 23 return m_transformOperations.CanBlendWith(other.m_transformOperations); |
28 } | 24 } |
29 | 25 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 { | 59 { |
64 m_transformOperations.AppendIdentity(); | 60 m_transformOperations.AppendIdentity(); |
65 } | 61 } |
66 | 62 |
67 bool CompositorTransformOperations::isIdentity() const | 63 bool CompositorTransformOperations::isIdentity() const |
68 { | 64 { |
69 return m_transformOperations.IsIdentity(); | 65 return m_transformOperations.IsIdentity(); |
70 } | 66 } |
71 | 67 |
72 } // namespace blink | 68 } // namespace blink |
OLD | NEW |