OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CompositorFactory_h |
| 6 #define CompositorFactory_h |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "platform/PlatformExport.h" |
| 10 #include "platform/animation/WebCompositorAnimationCurve.h" |
| 11 #include "platform/animation/WebScrollOffsetAnimationCurve.h" |
| 12 #include "public/platform/WebFloatPoint.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class WebFilterAnimationCurve; |
| 17 class WebFilterOperations; |
| 18 class WebFloatAnimationCurve; |
| 19 class WebTransformAnimationCurve; |
| 20 class WebTransformOperations; |
| 21 |
| 22 class PLATFORM_EXPORT CompositorFactory { |
| 23 public: |
| 24 static void initializeDefault(); |
| 25 static void initializeForTesting(scoped_ptr<CompositorFactory>); |
| 26 static void shutdown(); |
| 27 static CompositorFactory& current(); |
| 28 |
| 29 // Animation ---------------------------------------------------- |
| 30 |
| 31 virtual WebFilterAnimationCurve* createFilterAnimationCurve() { return nullp
tr; } |
| 32 |
| 33 virtual WebFloatAnimationCurve* createFloatAnimationCurve() { return nullptr
; } |
| 34 |
| 35 virtual WebScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve( |
| 36 WebFloatPoint targetValue, |
| 37 WebCompositorAnimationCurve::TimingFunctionType, |
| 38 WebScrollOffsetAnimationCurve::ScrollDurationBehavior) { return nullptr;
} |
| 39 |
| 40 virtual WebTransformAnimationCurve* createTransformAnimationCurve() { return
nullptr; } |
| 41 |
| 42 virtual WebTransformOperations* createTransformOperations() { return nullptr
; } |
| 43 |
| 44 virtual WebFilterOperations* createFilterOperations() { return nullptr; } |
| 45 |
| 46 protected: |
| 47 virtual ~CompositorFactory() {} |
| 48 }; |
| 49 } |
| 50 |
| 51 #endif // CompositorFactory_h |
OLD | NEW |