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

Unified Diff: cc/animation/layer_tree_mutator.h

Issue 1547893003: WIP - compositor worker mega patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/animation/layer_tree_mutation.h ('k') | cc/blink/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/layer_tree_mutator.h
diff --git a/cc/animation/layer_tree_mutator.h b/cc/animation/layer_tree_mutator.h
new file mode 100644
index 0000000000000000000000000000000000000000..1c9fba11393d49eca5b2d5d2819f446b4a52061b
--- /dev/null
+++ b/cc/animation/layer_tree_mutator.h
@@ -0,0 +1,33 @@
+// 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_ANIMATION_LAYER_TREE_MUTATOR_H_
+#define CC_ANIMATION_LAYER_TREE_MUTATOR_H_
+
+#include "base/time/time.h"
+
+#include "cc/animation/layer_tree_mutation.h"
+
+namespace cc {
+
+class LayerTreeImpl;
+
+class LayerTreeMutatorClient {
+ public:
+ virtual void SetNeedsMutate() = 0;
+};
+
+class LayerTreeMutator {
+ public:
+ virtual ~LayerTreeMutator() {}
+
+ // Returns true if the mutator should be rescheduled.
+ virtual bool Mutate(base::TimeTicks now, LayerTreeImpl* state) = 0;
+ virtual void SetClient(LayerTreeMutatorClient* client) = 0;
+ virtual LayerTreeMutationMap* TakeMutations() = 0;
+};
+
+} // namespace cc
+
+#endif // CC_ANIMATION_LAYER_TREE_MUTATOR_H_
« no previous file with comments | « cc/animation/layer_tree_mutation.h ('k') | cc/blink/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698