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

Unified 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: apply initial feedback 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h
diff --git a/third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h b/third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h
new file mode 100644
index 0000000000000000000000000000000000000000..4180790420ce5a79f985b76a5105b4377c761e86
--- /dev/null
+++ b/third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h
@@ -0,0 +1,38 @@
+// 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 CompositorAnimationHost_h
+#define CompositorAnimationHost_h
+
+#include "base/memory/ref_counted.h"
+#include "platform/PlatformExport.h"
+#include "wtf/Noncopyable.h"
+
+#include <memory>
+
+namespace cc {
+class AnimationHost;
+struct ScrollOffsetAnimationUpdate;
+}
+
+namespace blink {
+
+// A compositor representation for cc::AnimationHost.
+// This class wraps cc::AnimationHost and is currently only created from
+// CompositorAnimationTimeline::compositorAnimationHost.
+class PLATFORM_EXPORT CompositorAnimationHost {
+public:
+ CompositorAnimationHost(cc::AnimationHost*);
+
+ cc::AnimationHost* animationHost() const;
+
+ void addImplOnlyScrollOffsetAnimationUpdate(cc::ScrollOffsetAnimationUpdate);
skobes 2016/05/07 00:25:16 Couldn't this just be called updateImplOnlyScrollO
ymalik 2016/05/10 19:40:59 Done.
+
+private:
+ cc::AnimationHost* m_animationHost;
+};
+
+} // namespace blink
+
+#endif // CompositorAnimationTimeline_h

Powered by Google App Engine
This is Rietveld 408576698