| OLD | NEW |
| (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_ |
| OLD | NEW |