| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 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 #ifndef CC_BLINK_WEB_TRANSFORM_OPERATIONS_IMPL_H_ | |
| 6 #define CC_BLINK_WEB_TRANSFORM_OPERATIONS_IMPL_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "cc/animation/transform_operations.h" | |
| 11 #include "cc/blink/cc_blink_export.h" | |
| 12 #include "third_party/WebKit/public/platform/WebTransformOperations.h" | |
| 13 | |
| 14 namespace cc_blink { | |
| 15 | |
| 16 class WebTransformOperationsImpl : public blink::WebTransformOperations { | |
| 17 public: | |
| 18 CC_BLINK_EXPORT WebTransformOperationsImpl(); | |
| 19 ~WebTransformOperationsImpl() override; | |
| 20 | |
| 21 const cc::TransformOperations& AsTransformOperations() const; | |
| 22 | |
| 23 // Implementation of blink::WebTransformOperations methods | |
| 24 bool canBlendWith(const blink::WebTransformOperations& other) const override; | |
| 25 void appendTranslate(double x, double y, double z) override; | |
| 26 void appendRotate(double x, double y, double z, double degrees) override; | |
| 27 void appendScale(double x, double y, double z) override; | |
| 28 void appendSkew(double x, double y) override; | |
| 29 void appendPerspective(double depth) override; | |
| 30 void appendMatrix(const SkMatrix44&) override; | |
| 31 void appendIdentity() override; | |
| 32 bool isIdentity() const override; | |
| 33 | |
| 34 private: | |
| 35 cc::TransformOperations transform_operations_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(WebTransformOperationsImpl); | |
| 38 }; | |
| 39 | |
| 40 } // namespace cc_blink | |
| 41 | |
| 42 #endif // CC_BLINK_WEB_TRANSFORM_OPERATIONS_IMPL_H_ | |
| OLD | NEW |