Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h |
| diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h b/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h |
| index 1c5ee5e761679bb3a008c14deb55e34c8b71fbaa..e97631580eb4be96ae65b4210799cb22d8cf7af6 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h |
| +++ b/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h |
| @@ -6,26 +6,36 @@ |
| #define CompositorMutatorClient_h |
| #include "platform/PlatformExport.h" |
| +#include "platform/heap/Handle.h" |
| #include "public/platform/WebCompositorMutatorClient.h" |
| #include "wtf/OwnPtr.h" |
| #include "wtf/PassOwnPtr.h" |
| namespace blink { |
| +class CompositorMutator; |
| struct CompositorMutations; |
| class CompositorMutationsTarget; |
| class PLATFORM_EXPORT CompositorMutatorClient : public WebCompositorMutatorClient { |
| public: |
| - CompositorMutatorClient(CompositorMutationsTarget*); |
| + CompositorMutatorClient(CompositorMutator*, CompositorMutationsTarget*); |
|
jbroman
2016/04/29 19:42:22
Is it or is it not okay for the CompositorMutator*
flackr
2016/05/03 22:24:54
The current CompositorMutatorClient tests just ver
jbroman
2016/05/04 17:59:00
Hmm. Alright, though it seems a little suspicious
flackr
2016/05/04 21:52:40
It's done. May as well have the stub in place and
|
| virtual ~CompositorMutatorClient(); |
| + void setNeedsMutate(); |
| + |
| // cc::LayerTreeMutator |
| + bool Mutate(base::TimeTicks monotonicTime) override; |
| + void SetClient(cc::LayerTreeMutatorClient*) override; |
| base::Closure TakeMutations() override; |
| + CompositorMutator* mutator() { return m_mutator.get(); } |
| + |
| void setMutationsForTesting(PassOwnPtr<CompositorMutations>); |
| private: |
| + cc::LayerTreeMutatorClient* m_client; |
| CompositorMutationsTarget* m_mutationsTarget; |
| + Persistent<CompositorMutator> m_mutator; |
| OwnPtr<CompositorMutations> m_mutations; |
| }; |