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" |
11 #include "platform/heap/HeapAllocator.h" | 11 #include "platform/heap/HeapAllocator.h" |
12 #include "wtf/Noncopyable.h" | 12 #include "wtf/Noncopyable.h" |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class CompositorProxy; | 17 class CompositorProxy; |
18 class CompositorProxyClientImpl; | 18 class CompositorProxyClientImpl; |
19 class CompositorWorkerGlobalScope; | |
20 class CompositorMutatorClient; | 19 class CompositorMutatorClient; |
21 | 20 |
22 // Fans out requests from the compositor to all of the registered ProxyClients | 21 // Fans out requests from the compositor to all of the registered ProxyClients |
23 // which can then mutate layers through their CompositorProxy interfaces. | 22 // which can then mutate layers through their CompositorProxy interfaces. |
24 // Requests for animation frames are received from ProxyClients and sent to the | 23 // Requests for animation frames are received from ProxyClients and sent to the |
25 // compositor to generate a new compositor frame. | 24 // compositor to generate a new compositor frame. |
26 // | 25 // |
27 // Should be accessed only on the compositor thread. | 26 // Should be accessed only on the compositor thread. |
28 class CompositorMutatorImpl final : public CompositorMutator { | 27 class CompositorMutatorImpl final : public CompositorMutator { |
29 WTF_MAKE_NONCOPYABLE(CompositorMutatorImpl); | 28 WTF_MAKE_NONCOPYABLE(CompositorMutatorImpl); |
(...skipping 23 matching lines...) Expand all Loading... |
53 HashSet<CrossThreadPersistent<CompositorProxyClientImpl>>; | 52 HashSet<CrossThreadPersistent<CompositorProxyClientImpl>>; |
54 ProxyClients m_proxyClients; | 53 ProxyClients m_proxyClients; |
55 | 54 |
56 std::unique_ptr<CustomCompositorAnimationManager> m_animationManager; | 55 std::unique_ptr<CustomCompositorAnimationManager> m_animationManager; |
57 CompositorMutatorClient* m_client; | 56 CompositorMutatorClient* m_client; |
58 }; | 57 }; |
59 | 58 |
60 } // namespace blink | 59 } // namespace blink |
61 | 60 |
62 #endif // CompositorMutatorImpl_h | 61 #endif // CompositorMutatorImpl_h |
OLD | NEW |