Index: cc/public/mutator_host_client.h |
diff --git a/cc/public/mutator_host_client.h b/cc/public/mutator_host_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ce5d42249f7b2e0d7282bd51be82c4ba075c5e48 |
--- /dev/null |
+++ b/cc/public/mutator_host_client.h |
@@ -0,0 +1,42 @@ |
+// 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_PUBLIC_MUTATOR_HOST_CLIENT_H_ |
ajuma
2015/06/29 14:56:19
Creating a cc/public directory for this seems a bi
loyso (OOO)
2015/06/30 01:39:57
We have a plan to accumulate all the external cc i
|
+#define CC_PUBLIC_MUTATOR_HOST_CLIENT_H_ |
+ |
+namespace gfx { |
+class Transform; |
+class ScrollOffset; |
+} |
+ |
+namespace cc { |
+ |
+class FilterOperations; |
+class Layer; |
+ |
+enum class LayerTreeType { ACTIVE, PENDING }; |
+ |
+class MutatorHostClient { |
+ public: |
+ virtual bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const = 0; |
+ virtual void SetMutatorsNeedCommit() = 0; |
+ |
+ virtual void SetLayerFilterMutated(int layer_id, |
+ LayerTreeType tree_type, |
+ const FilterOperations& filters) = 0; |
+ virtual void SetLayerOpacityMutated(int layer_id, |
+ LayerTreeType tree_type, |
+ float opacity) = 0; |
+ virtual void SetLayerTransformMutated(int layer_id, |
+ LayerTreeType tree_type, |
+ const gfx::Transform& transform) = 0; |
+ virtual void SetLayerScrollOffsetMutated( |
+ int layer_id, |
+ LayerTreeType tree_type, |
+ const gfx::ScrollOffset& scroll_offset) = 0; |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_PUBLIC_MUTATOR_HOST_CLIENT_H_ |