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 AnimationWorkletProxyClientImpl_h | 5 #ifndef AnimationWorkletProxyClientImpl_h |
6 #define AnimationWorkletProxyClientImpl_h | 6 #define AnimationWorkletProxyClientImpl_h |
7 | 7 |
8 #include "core/dom/AnimationWorkletProxyClient.h" | 8 #include "core/dom/AnimationWorkletProxyClient.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "platform/wtf/Noncopyable.h" |
10 #include "web/CompositorAnimator.h" | 11 #include "web/CompositorAnimator.h" |
11 #include "web/CompositorProxyClientImpl.h" | 12 #include "web/CompositorProxyClientImpl.h" |
12 #include "wtf/Noncopyable.h" | |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class CompositorMutatorImpl; | 16 class CompositorMutatorImpl; |
17 | 17 |
18 // Mediates between one Animator and the associated CompositorMutatorImpl. There | 18 // Mediates between one Animator and the associated CompositorMutatorImpl. There |
19 // is one AnimationWorkletProxyClientImpl per Animator but there may be multiple | 19 // is one AnimationWorkletProxyClientImpl per Animator but there may be multiple |
20 // for a given mutator and animatorWorklet. | 20 // for a given mutator and animatorWorklet. |
21 // | 21 // |
22 // This is constructed on the main thread but it is used in the worklet backing | 22 // This is constructed on the main thread but it is used in the worklet backing |
(...skipping 16 matching lines...) Expand all Loading... |
39 | 39 |
40 private: | 40 private: |
41 CrossThreadPersistent<CompositorMutatorImpl> m_mutator; | 41 CrossThreadPersistent<CompositorMutatorImpl> m_mutator; |
42 | 42 |
43 CrossThreadPersistent<CompositorProxyClientImpl> m_compositorProxyClient; | 43 CrossThreadPersistent<CompositorProxyClientImpl> m_compositorProxyClient; |
44 }; | 44 }; |
45 | 45 |
46 } // namespace blink | 46 } // namespace blink |
47 | 47 |
48 #endif // AnimationWorkletProxyClientImpl_h | 48 #endif // AnimationWorkletProxyClientImpl_h |
OLD | NEW |