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/animation/CompositorAnimationHost.h

Issue 1950243005: Communicate MT changes to impl-only scroll offset animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 7 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 CompositorAnimationHost_h
6 #define CompositorAnimationHost_h
7
8 #include "base/memory/ref_counted.h"
9 #include "platform/PlatformExport.h"
10 #include "ui/gfx/geometry/vector2d.h"
11 #include "wtf/Noncopyable.h"
12
13 #include <memory>
14
15 namespace cc {
16 class AnimationHost;
17 struct ScrollOffsetAnimationUpdate;
18 }
19
20 namespace blink {
21
22 // A compositor representation for cc::AnimationHost.
23 // This class wraps cc::AnimationHost and is currently only created from
24 // CompositorAnimationTimeline::compositorAnimationHost.
25 // TODO(ymalik): Correctly introduce CompositorAnimationHost to blink. See
26 // crbug.com/610763.
loyso (OOO) 2016/05/11 06:25:45 Probably same bug link needed on CompositorAnimati
ymalik 2016/05/12 22:31:25 Done.
27 class PLATFORM_EXPORT CompositorAnimationHost {
28 public:
29 CompositorAnimationHost(cc::AnimationHost*);
loyso (OOO) 2016/05/11 06:25:45 explicit
ymalik 2016/05/12 22:31:25 Done.
30
31 cc::AnimationHost* animationHost() const;
32
33 void updateImplOnlyScrollOffsetAnimation(const gfx::Vector2dF& adjustment, i nt elementId);
loyso (OOO) 2016/05/11 06:25:45 cc::ElementId
ymalik 2016/05/12 22:31:25 Done.
34
35 private:
36 cc::AnimationHost* m_animationHost;
37 };
38
39 } // namespace blink
40
41 #endif // CompositorAnimationTimeline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698