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

Unified Diff: cc/trees/layer_tree_mutators_client.h

Issue 947033002: CC Animations: Establish AnimationHost, AnimationTimeline and AnimationPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set up impl-only timelines for ScrollOffset animations Created 5 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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_mutators_client.h
diff --git a/cc/trees/layer_tree_mutators_client.h b/cc/trees/layer_tree_mutators_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..9701e2036672dce091ee5f723b3a654d929345e5
--- /dev/null
+++ b/cc/trees/layer_tree_mutators_client.h
@@ -0,0 +1,41 @@
+// Copyright 2015 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 CC_TREES_LAYER_TREE_MUTATORS_CLIENT_H_
+#define CC_TREES_LAYER_TREE_MUTATORS_CLIENT_H_
+
+namespace gfx {
+class Transform;
+class ScrollOffset;
+}
+
+namespace cc {
+
+class FilterOperations;
+class Layer;
+
+class LayerTreeMutatorsClient {
+ public:
+ virtual bool IsLayerInActiveTree(int layer_id) const = 0;
+ virtual bool IsLayerInPendingTree(int layer_id) const = 0;
+ virtual void SetMutatorsNeedCommit() = 0;
+
+ virtual void SetLayerFilterMutated(int layer_id,
+ bool active_tree,
+ const FilterOperations& filters) = 0;
+ virtual void SetLayerOpacityMutated(int layer_id,
+ bool active_tree,
+ float opacity) = 0;
+ virtual void SetLayerTransformMutated(int layer_id,
+ bool active_tree,
+ const gfx::Transform& transform) = 0;
+ virtual void SetLayerScrollOffsetMutated(
+ int layer_id,
+ bool active_tree,
+ const gfx::ScrollOffset& scroll_offset) = 0;
+};
+
+} // namespace cc
+
+#endif // CC_TREES_LAYER_TREE_MUTATORS_CLIENT_H_
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698