Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: webkit/compositor_bindings/web_transform_operations_impl.cc

Issue 11876016: Define cc::TransformOperations and webkit::WebTransformOperationsImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Put TransformOperation into its own header Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "webkit/compositor_bindings/web_transform_operations_impl.h"
6
7 namespace webkit {
8
9 #if WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL
10 WebTransformOperationsImpl::WebTransformOperationsImpl() {
11 }
12
13 const cc::TransformOperations&
14 WebTransformOperationsImpl::AsTransformOperations() const {
15 return transform_operations_;
16 }
17
18 bool WebTransformOperationsImpl::canBlendWith(
19 const WebKit::WebTransformOperations& other) const {
20 const WebTransformOperationsImpl& other_impl =
21 static_cast<const WebTransformOperationsImpl&>(other);
22 return transform_operations_.CanBlendWith(other_impl.transform_operations_);
23 }
24
25 void WebTransformOperationsImpl::appendTranslate(double x, double y, double z) {
26 transform_operations_.AppendTranslate(x, y, z);
27 }
28
29 void WebTransformOperationsImpl::appendRotate(
30 double x, double y, double z, double degrees) {
31 transform_operations_.AppendRotate(x, y, z, degrees);
32 }
33
34 void WebTransformOperationsImpl::appendScale(double x, double y, double z) {
35 transform_operations_.AppendScale(x, y, z);
36 }
37
38 void WebTransformOperationsImpl::appendSkew(double x, double y) {
39 transform_operations_.AppendSkew(x, y);
40 }
41
42 void WebTransformOperationsImpl::appendPerspective(double depth) {
43 transform_operations_.AppendPerspective(depth);
44 }
45
46 void WebTransformOperationsImpl::appendMatrix(
47 const WebKit::WebTransformationMatrix& matrix) {
48 transform_operations_.AppendMatrix(matrix);
49 }
50
51 void WebTransformOperationsImpl::appendIdentity() {
52 transform_operations_.AppendIdentity();
53 }
54
55 bool WebTransformOperationsImpl::isIdentity() const {
56 return transform_operations_.IsIdentity();
57 }
58
59 WebTransformOperationsImpl::~WebTransformOperationsImpl() {
60 }
61 #endif // WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL
62
63 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698