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

Unified Diff: third_party/WebKit/Source/platform/CompositorFactory.h

Issue 1616653002: CC Animation: Move files from cc_blink to Source/platform/animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
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..ca08484f3a79c462153dee21b8c87fc16f3e3849
--- /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 {
+public:
+ static void initializeDefault();
+ static void initializeForTesting(scoped_ptr<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

Powered by Google App Engine
This is Rietveld 408576698