OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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 CompositorProxyClientImpl_h | |
6 #define CompositorProxyClientImpl_h | |
7 | |
8 #include "core/dom/CompositorProxyClient.h" | |
9 #include "wtf/Noncopyable.h" | |
10 | |
11 namespace blink { | |
12 | |
13 class CompositorMutatorImpl; | |
14 class CompositorWorkerGlobalScope; | |
15 class WorkerGlobalScope; | |
16 | |
jbroman
2016/04/29 19:42:22
Class comment here, along the lines of the ones gi
jbroman
2016/04/29 19:42:22
Class comment here, along the lines of the ones gi
flackr
2016/05/03 22:24:55
Your description is concise and accurate - I've li
| |
17 class CompositorProxyClientImpl final : public GarbageCollectedFinalized<Composi torProxyClientImpl>, public CompositorProxyClient { | |
jbroman
2016/04/29 19:42:22
nit: does this have any finalization logic? could
flackr
2016/05/03 22:24:54
For now, no. Switched to no finalization - I'll le
| |
18 USING_GARBAGE_COLLECTED_MIXIN(CompositorProxyClientImpl); | |
19 WTF_MAKE_NONCOPYABLE(CompositorProxyClientImpl); | |
20 public: | |
21 CompositorProxyClientImpl(CompositorMutatorImpl*, double referenceMonotonicT ime); | |
22 DECLARE_VIRTUAL_TRACE(); | |
23 | |
24 bool mutate(double monotonicTimeNow); | |
jbroman
2016/04/29 19:42:22
Please comment what the return type means. From re
flackr
2016/05/03 22:24:54
Done.
| |
25 | |
26 // CompositorProxyClient: | |
27 void setGlobalScope(WorkerGlobalScope*) override; | |
28 void requestAnimationFrame() override; | |
29 | |
30 private: | |
31 bool executeAnimationFrameCallbacks(double monotonicTimeNow); | |
32 | |
33 CompositorMutatorImpl* m_mutator; | |
34 | |
35 WeakMember<CompositorWorkerGlobalScope> m_globalScope; | |
36 double m_referenceMonotonicTime; | |
jbroman
2016/04/29 19:42:22
Why plumb this in separately? Isn't it guaranteed
flackr
2016/05/03 22:24:54
So it is, thanks! Removed.
| |
37 bool m_requestedAnimationFrameCallbacks; | |
38 }; | |
39 | |
40 } // namespace blink | |
41 | |
42 #endif // CompositorProxyClientImpl_h | |
OLD | NEW |