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

Side by Side Diff: third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h

Issue 2006103004: Send takeover msg from MT to CC using the animation path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: jbroman nits Created 4 years, 6 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 #ifndef CompositorAnimationHost_h 5 #ifndef CompositorAnimationHost_h
6 #define CompositorAnimationHost_h 6 #define CompositorAnimationHost_h
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "cc/animation/animation_host.h" 9 #include "cc/animation/animation_host.h"
10 #include "platform/PlatformExport.h" 10 #include "platform/PlatformExport.h"
(...skipping 14 matching lines...) Expand all
25 // TODO(ymalik): Correctly introduce CompositorAnimationHost to blink. See 25 // TODO(ymalik): Correctly introduce CompositorAnimationHost to blink. See
26 // crbug.com/610763. 26 // crbug.com/610763.
27 class PLATFORM_EXPORT CompositorAnimationHost { 27 class PLATFORM_EXPORT CompositorAnimationHost {
28 public: 28 public:
29 explicit CompositorAnimationHost(cc::AnimationHost*); 29 explicit CompositorAnimationHost(cc::AnimationHost*);
30 30
31 // TODO(ymalik): Remove when CompositorAnimationHost* optional nullable ptr 31 // TODO(ymalik): Remove when CompositorAnimationHost* optional nullable ptr
32 // is returned. See crbug.com/610763. 32 // is returned. See crbug.com/610763.
33 bool isNull() const; 33 bool isNull() const;
34 34
35 void updateImplOnlyScrollOffsetAnimation(const gfx::Vector2dF& adjustment, c c::ElementId); 35 void adjustImplOnlyScrollOffsetAnimation(cc::ElementId, const gfx::Vector2dF & adjustment);
36 void takeOverImplOnlyScrollOffsetAnimation(cc::ElementId);
36 37
37 private: 38 private:
38 cc::AnimationHost* m_animationHost; 39 cc::AnimationHost* m_animationHost;
39 }; 40 };
40 41
41 } // namespace blink 42 } // namespace blink
42 43
43 #endif // CompositorAnimationTimeline_h 44 #endif // CompositorAnimationTimeline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698