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

Side by Side Diff: third_party/WebKit/Source/core/animation/CompositorMutationAnimations.h

Issue 1602343002: compositor-worker: cc->blink mutation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-ian-patch
Patch Set: Use animation machinery instead of updating inline style 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
(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 CompositorMutationAnimations_h
6 #define CompositorMutationAnimations_h
7
8 #include "core/animation/Animation.h"
9 #include "platform/heap/Handle.h"
10 #include "wtf/Noncopyable.h"
11
12 namespace blink {
13
14 class Element;
15 class CompositorMutation;
16
17 class CompositorMutationAnimations final {
18 DISALLOW_NEW();
19 WTF_MAKE_NONCOPYABLE(CompositorMutationAnimations);
20
esprehn 2016/02/17 01:32:36 remove nl
majidvp 2016/02/22 17:59:48 Done.
21 public:
22 CompositorMutationAnimations() {}
23 void applyUpdate(Element&, const CompositorMutation&);
24
25 DEFINE_INLINE_TRACE()
26 {
27 visitor->trace(m_opacityAnimation);
28 visitor->trace(m_transformAnimation);
29 }
30
31 private:
32 // We only need two animations at the moment but if that grows we should
33 // use a map instead of individual members.
esprehn 2016/02/17 01:32:36 Why not use a single animation?
majidvp 2016/02/22 17:59:48 Done.
34 Member<Animation> m_opacityAnimation;
35 Member<Animation> m_transformAnimation;
36 };
37
38 } // namespace blink
39
40 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698