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

Unified Diff: cc/trees/mutator_host_client.h

Issue 1009233002: CC Animations: Port Impl-only-scrolling to use compositor animation timelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ui
Patch Set: CC_EXPORT for MutatorHostClient Created 5 years, 5 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: cc/trees/mutator_host_client.h
diff --git a/cc/trees/mutator_host_client.h b/cc/trees/mutator_host_client.h
index ffb2329e7ccad73f3e579e2c52163941b5786e45..fec78758d29d3f54c9bb5b565a5cdfe67b57a45e 100644
--- a/cc/trees/mutator_host_client.h
+++ b/cc/trees/mutator_host_client.h
@@ -5,6 +5,8 @@
#ifndef CC_TREES_MUTATOR_HOST_CLIENT_H_
#define CC_TREES_MUTATOR_HOST_CLIENT_H_
+#include "cc/base/cc_export.h"
+
namespace gfx {
class Transform;
class ScrollOffset;
@@ -17,7 +19,7 @@ class Layer;
enum class LayerTreeType { ACTIVE, PENDING };
-class MutatorHostClient {
+class CC_EXPORT MutatorHostClient {
public:
virtual bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const = 0;
virtual void SetMutatorsNeedCommit() = 0;
@@ -35,6 +37,9 @@ class MutatorHostClient {
int layer_id,
LayerTreeType tree_type,
const gfx::ScrollOffset& scroll_offset) = 0;
+
+ virtual void ScrollOffsetAnimationFinished() {}
ajuma 2015/07/06 17:41:00 This should be pure virtual like the other methods
loyso (OOO) 2015/07/07 04:14:38 Done.
+ virtual gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const = 0;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698