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

Unified Diff: third_party/WebKit/Source/core/animation/CustomCompositorAnimations.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: Merge master + s/scoped_ptr/unique_ptr/ Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/CustomCompositorAnimations.h
diff --git a/third_party/WebKit/Source/core/animation/CustomCompositorAnimations.h b/third_party/WebKit/Source/core/animation/CustomCompositorAnimations.h
new file mode 100644
index 0000000000000000000000000000000000000000..b0eadef9db0922ce921170e79f9f812e24255be5
--- /dev/null
+++ b/third_party/WebKit/Source/core/animation/CustomCompositorAnimations.h
@@ -0,0 +1,36 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CustomCompositorAnimations_h
+#define CustomCompositorAnimations_h
+
+#include "core/animation/Animation.h"
+#include "platform/heap/Handle.h"
+#include "wtf/Noncopyable.h"
+
+namespace blink {
+
+class Element;
+class CompositorMutation;
+
+class CustomCompositorAnimations final {
+ DISALLOW_NEW();
+ WTF_MAKE_NONCOPYABLE(CustomCompositorAnimations);
+
+public:
+ CustomCompositorAnimations() {}
+ void applyUpdate(Element&, const CompositorMutation&);
+
+ DEFINE_INLINE_TRACE()
+ {
+ visitor->trace(m_animation);
+ }
+
+private:
+ Member<Animation> m_animation;
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698