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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « cc/animation/layer_tree_mutation.h ('k') | cc/blink/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_ANIMATION_LAYER_TREE_MUTATOR_H_
6 #define CC_ANIMATION_LAYER_TREE_MUTATOR_H_
7
8 #include "base/time/time.h"
9
10 #include "cc/animation/layer_tree_mutation.h"
11
12 namespace cc {
13
14 class LayerTreeImpl;
15
16 class LayerTreeMutatorClient {
17 public:
18 virtual void SetNeedsMutate() = 0;
19 };
20
21 class LayerTreeMutator {
22 public:
23 virtual ~LayerTreeMutator() {}
24
25 // Returns true if the mutator should be rescheduled.
26 virtual bool Mutate(base::TimeTicks now, LayerTreeImpl* state) = 0;
27 virtual void SetClient(LayerTreeMutatorClient* client) = 0;
28 virtual LayerTreeMutationMap* TakeMutations() = 0;
29 };
30
31 } // namespace cc
32
33 #endif // CC_ANIMATION_LAYER_TREE_MUTATOR_H_
OLDNEW
« 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