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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/CompositorFactory.cpp

Issue 1734063003: Share animations from compositor to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make NotifyAnimationTakeover pure virtual Created 4 years, 10 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/graphics/CompositorFactory.h" 5 #include "platform/graphics/CompositorFactory.h"
6 6
7 #include "platform/animation/CompositorAnimation.h" 7 #include "platform/animation/CompositorAnimation.h"
8 #include "platform/animation/CompositorAnimationPlayer.h" 8 #include "platform/animation/CompositorAnimationPlayer.h"
9 #include "platform/animation/CompositorAnimationTimeline.h" 9 #include "platform/animation/CompositorAnimationTimeline.h"
10 #include "platform/animation/CompositorFilterAnimationCurve.h" 10 #include "platform/animation/CompositorFilterAnimationCurve.h"
(...skipping 18 matching lines...) Expand all
29 29
30 CompositorScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve( 30 CompositorScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve(
31 FloatPoint targetValue, 31 FloatPoint targetValue,
32 CompositorAnimationCurve::TimingFunctionType timingFunctionType, 32 CompositorAnimationCurve::TimingFunctionType timingFunctionType,
33 CompositorScrollOffsetAnimationCurve::ScrollDurationBehavior durationBeh avior) 33 CompositorScrollOffsetAnimationCurve::ScrollDurationBehavior durationBeh avior)
34 { 34 {
35 return new CompositorScrollOffsetAnimationCurve(targetValue, timingFunct ionType, 35 return new CompositorScrollOffsetAnimationCurve(targetValue, timingFunct ionType,
36 durationBehavior); 36 durationBehavior);
37 } 37 }
38 38
39 CompositorScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve(
40 cc::ScrollOffsetAnimationCurve* curve)
41 {
42 return new CompositorScrollOffsetAnimationCurve(curve);
43 }
44
39 CompositorTransformAnimationCurve* createTransformAnimationCurve() override 45 CompositorTransformAnimationCurve* createTransformAnimationCurve() override
40 { 46 {
41 return new CompositorTransformAnimationCurve(); 47 return new CompositorTransformAnimationCurve();
42 } 48 }
43 49
44 CompositorTransformOperations* createTransformOperations() override 50 CompositorTransformOperations* createTransformOperations() override
45 { 51 {
46 return new CompositorTransformOperations(); 52 return new CompositorTransformOperations();
47 } 53 }
48 54
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 s_factory = nullptr; 93 s_factory = nullptr;
88 } 94 }
89 95
90 CompositorFactory& CompositorFactory::current() 96 CompositorFactory& CompositorFactory::current()
91 { 97 {
92 ASSERT(s_factory); 98 ASSERT(s_factory);
93 return *s_factory; 99 return *s_factory;
94 } 100 }
95 101
96 } // namespace blink 102 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698