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

Side by Side 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: Update GN. Port CompositorAnimationsTest to use CompositorFactoryMock. 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 unified diff | Download patch
OLDNEW
(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 {
loyso (OOO) 2016/01/21 06:03:02 We will be able to delete CompositorFactory if we
23 public:
24 static void initializeDefault();
25 static void initializeForTesting(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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/FilterPainter.cpp ('k') | third_party/WebKit/Source/platform/CompositorFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698