Chromium Code Reviews| Index: third_party/WebKit/Source/platform/CompositorFactory.h |
| diff --git a/third_party/WebKit/Source/platform/CompositorFactory.h b/third_party/WebKit/Source/platform/CompositorFactory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3394e8b0637a72f6ee5a2ca9cc00ec3e5e523183 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/platform/CompositorFactory.h |
| @@ -0,0 +1,51 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CompositorFactory_h |
| +#define CompositorFactory_h |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "platform/PlatformExport.h" |
| +#include "platform/animation/WebCompositorAnimationCurve.h" |
| +#include "platform/animation/WebScrollOffsetAnimationCurve.h" |
| +#include "public/platform/WebFloatPoint.h" |
| + |
| +namespace blink { |
| + |
| +class WebFilterAnimationCurve; |
| +class WebFilterOperations; |
| +class WebFloatAnimationCurve; |
| +class WebTransformAnimationCurve; |
| +class WebTransformOperations; |
| + |
| +class PLATFORM_EXPORT CompositorFactory { |
|
loyso (OOO)
2016/01/21 06:03:02
We will be able to delete CompositorFactory if we
|
| +public: |
| + static void initializeDefault(); |
| + static void initializeForTesting(CompositorFactory*); |
| + static void shutdown(); |
| + static CompositorFactory& current(); |
| + |
| + // Animation ---------------------------------------------------- |
| + |
| + virtual WebFilterAnimationCurve* createFilterAnimationCurve() { return nullptr; } |
| + |
| + virtual WebFloatAnimationCurve* createFloatAnimationCurve() { return nullptr; } |
| + |
| + virtual WebScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve( |
| + WebFloatPoint targetValue, |
| + WebCompositorAnimationCurve::TimingFunctionType, |
| + WebScrollOffsetAnimationCurve::ScrollDurationBehavior) { return nullptr; } |
| + |
| + virtual WebTransformAnimationCurve* createTransformAnimationCurve() { return nullptr; } |
| + |
| + virtual WebTransformOperations* createTransformOperations() { return nullptr; } |
| + |
| + virtual WebFilterOperations* createFilterOperations() { return nullptr; } |
| + |
| +protected: |
| + virtual ~CompositorFactory() {} |
| +}; |
| +} |
| + |
| +#endif // CompositorFactory_h |