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 "webkit/renderer/compositor_bindings/web_transform_operations_impl.h" | 5 #include "content/renderer/compositor_bindings/web_transform_operations_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ui/gfx/transform.h" | 9 #include "ui/gfx/transform.h" |
10 | 10 |
11 namespace webkit { | 11 namespace content { |
12 | 12 |
13 WebTransformOperationsImpl::WebTransformOperationsImpl() {} | 13 WebTransformOperationsImpl::WebTransformOperationsImpl() { |
| 14 } |
14 | 15 |
15 const cc::TransformOperations& | 16 const cc::TransformOperations& |
16 WebTransformOperationsImpl::AsTransformOperations() const { | 17 WebTransformOperationsImpl::AsTransformOperations() const { |
17 return transform_operations_; | 18 return transform_operations_; |
18 } | 19 } |
19 | 20 |
20 bool WebTransformOperationsImpl::canBlendWith( | 21 bool WebTransformOperationsImpl::canBlendWith( |
21 const blink::WebTransformOperations& other) const { | 22 const blink::WebTransformOperations& other) const { |
22 const WebTransformOperationsImpl& other_impl = | 23 const WebTransformOperationsImpl& other_impl = |
23 static_cast<const WebTransformOperationsImpl&>(other); | 24 static_cast<const WebTransformOperationsImpl&>(other); |
(...skipping 30 matching lines...) Expand all Loading... |
54 } | 55 } |
55 | 56 |
56 void WebTransformOperationsImpl::appendIdentity() { | 57 void WebTransformOperationsImpl::appendIdentity() { |
57 transform_operations_.AppendIdentity(); | 58 transform_operations_.AppendIdentity(); |
58 } | 59 } |
59 | 60 |
60 bool WebTransformOperationsImpl::isIdentity() const { | 61 bool WebTransformOperationsImpl::isIdentity() const { |
61 return transform_operations_.IsIdentity(); | 62 return transform_operations_.IsIdentity(); |
62 } | 63 } |
63 | 64 |
64 WebTransformOperationsImpl::~WebTransformOperationsImpl() {} | 65 WebTransformOperationsImpl::~WebTransformOperationsImpl() { |
| 66 } |
65 | 67 |
66 } // namespace webkit | 68 } // namespace content |
| 69 |
OLD | NEW |