| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CompositorMutatorImpl_h | 5 #ifndef CompositorMutatorImpl_h |
| 6 #define CompositorMutatorImpl_h | 6 #define CompositorMutatorImpl_h |
| 7 | 7 |
| 8 #include "core/animation/CustomCompositorAnimationManager.h" | 8 #include "core/animation/CustomCompositorAnimationManager.h" |
| 9 #include "platform/graphics/CompositorMutator.h" | 9 #include "platform/graphics/CompositorMutator.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 static std::unique_ptr<CompositorMutatorClient> createClient(); | 32 static std::unique_ptr<CompositorMutatorClient> createClient(); |
| 33 static CompositorMutatorImpl* create(); | 33 static CompositorMutatorImpl* create(); |
| 34 | 34 |
| 35 DEFINE_INLINE_TRACE() | 35 DEFINE_INLINE_TRACE() |
| 36 { | 36 { |
| 37 CompositorMutator::trace(visitor); | 37 CompositorMutator::trace(visitor); |
| 38 visitor->trace(m_proxyClients); | 38 visitor->trace(m_proxyClients); |
| 39 } | 39 } |
| 40 | 40 |
| 41 // CompositorMutator implementation. | 41 // CompositorMutator implementation. |
| 42 bool mutate(double monotonicTimeNow) override; | 42 bool mutate(double monotonicTimeNow, CompositorMutableStateProvider*) overri
de; |
| 43 | 43 |
| 44 void registerProxyClient(CompositorProxyClientImpl*); | 44 void registerProxyClient(CompositorProxyClientImpl*); |
| 45 | 45 |
| 46 void setNeedsMutate(); | 46 void setNeedsMutate(); |
| 47 | 47 |
| 48 void setClient(CompositorMutatorClient* client) { m_client = client; } | 48 void setClient(CompositorMutatorClient* client) { m_client = client; } |
| 49 CustomCompositorAnimationManager* animationManager() { return m_animationMan
ager.get(); } | 49 CustomCompositorAnimationManager* animationManager() { return m_animationMan
ager.get(); } |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 CompositorMutatorImpl(); | 52 CompositorMutatorImpl(); |
| 53 | 53 |
| 54 using ProxyClients = HeapHashSet<WeakMember<CompositorProxyClientImpl>>; | 54 using ProxyClients = HeapHashSet<WeakMember<CompositorProxyClientImpl>>; |
| 55 ProxyClients m_proxyClients; | 55 ProxyClients m_proxyClients; |
| 56 | 56 |
| 57 OwnPtr<CustomCompositorAnimationManager> m_animationManager; | 57 OwnPtr<CustomCompositorAnimationManager> m_animationManager; |
| 58 CompositorMutatorClient* m_client; | 58 CompositorMutatorClient* m_client; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace blink | 61 } // namespace blink |
| 62 | 62 |
| 63 #endif // CompositorMutatorImpl_h | 63 #endif // CompositorMutatorImpl_h |
| OLD | NEW |