OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 CompositorMutatorClient_h |
| 6 #define CompositorMutatorClient_h |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "platform/PlatformExport.h" |
| 10 #include "public/platform/WebCompositorMutatorClient.h" |
| 11 #include "wtf/OwnPtr.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class CompositorMutator; |
| 16 struct CompositorMutations; |
| 17 |
| 18 class PLATFORM_EXPORT CompositorMutatorClient : public WebCompositorMutatorClien
t { |
| 19 public: |
| 20 explicit CompositorMutatorClient(CompositorMutator*); |
| 21 virtual ~CompositorMutatorClient(); |
| 22 |
| 23 void setNeedsMutate(); |
| 24 |
| 25 // cc::LayerTreeMutator |
| 26 bool Mutate(base::TimeTicks timeNow, cc::LayerTreeImpl* state) override; |
| 27 void SetClient(cc::LayerTreeMutatorClient* client) override; |
| 28 scoped_ptr<cc::LayerTreeMutations> TakeMutations() override; |
| 29 |
| 30 private: |
| 31 cc::LayerTreeMutatorClient* m_client; |
| 32 CompositorMutator* m_mutator; |
| 33 OwnPtr<CompositorMutations> m_mutations; |
| 34 }; |
| 35 |
| 36 } // namespace blink |
| 37 |
| 38 #endif // CompositorMutatorClient_h |
OLD | NEW |