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

Side by Side Diff: cc/blink/web_mutator_client_impl.h

Issue 1547893003: WIP - compositor worker mega patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/blink/web_mutator_client_impl.cc » ('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_BLINK_WEB_MUTATOR_CLIENT_IMPL_H_
6 #define CC_BLINK_WEB_MUTATOR_CLIENT_IMPL_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/animation/layer_tree_mutator.h"
10 #include "cc/blink/cc_blink_export.h"
11 #include "third_party/WebKit/public/platform/WebMutation.h"
12 #include "third_party/WebKit/public/platform/WebMutatorClient.h"
13
14 namespace blink {
15 class WebMutator;
16 } // namespace blink
17
18 namespace cc_blink {
19
20 class WebMutatorClientImpl : public blink::WebMutatorClient,
21 public cc::LayerTreeMutator {
22 public:
23 CC_BLINK_EXPORT WebMutatorClientImpl(blink::WebMutator*);
24 ~WebMutatorClientImpl() override;
25
26 // cc::LayerTreeMutator
27 bool Mutate(base::TimeTicks timeNow, cc::LayerTreeImpl* state) override;
28 void SetClient(cc::LayerTreeMutatorClient* client) override;
29 cc::LayerTreeMutationMap* TakeMutations() override;
30
31 // blink::WebMutatorClient
32 void setNeedsMutate() override;
33
34 private:
35 cc::LayerTreeMutatorClient* client_;
36 blink::WebMutator* mutator_;
37 scoped_ptr<cc::LayerTreeMutationMap> mutations_;
38 };
39
40 } // namespace cc_blink
41
42 #endif // CC_BLINK_WEB_MUTATOR_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/blink/web_mutator_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698