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 | |
jbroman
2016/04/20 21:06:42
nit: unnecessary newline
flackr
2016/04/25 14:06:28
Removed.
| |
10 #include "wtf/Noncopyable.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class CompositorMutatorImpl; | |
15 class CompositorWorkerGlobalScope; | |
16 class WorkerGlobalScope; | |
17 | |
18 class CompositorProxyClientImpl : public CompositorProxyClient { | |
19 WTF_MAKE_NONCOPYABLE(CompositorProxyClientImpl); | |
20 | |
21 public: | |
22 explicit CompositorProxyClientImpl(CompositorMutatorImpl*); | |
23 ~CompositorProxyClientImpl() override; | |
24 DECLARE_VIRTUAL_TRACE(); | |
25 | |
26 bool mutate(double timeNow) final; | |
jbroman
2016/04/20 21:06:42
nit: this seems to be overriding a method in Compo
flackr
2016/04/25 14:06:28
No longer overridiing the method in CompositorProx
| |
27 | |
28 // CompositorProxyClient: | |
29 void setGlobalScope(WorkerGlobalScope*) override; | |
30 void requestMutation() override; | |
31 | |
32 private: | |
33 bool executeAnimationFrameCallbacks(double time); | |
34 | |
35 CompositorMutatorImpl* m_mutator; | |
jbroman
2016/04/20 21:06:42
lifetime of the CompositorMutatorImpl isn't obviou
| |
36 | |
37 Member<CompositorWorkerGlobalScope> m_globalScope; | |
38 bool m_executingAnimationFrameCallbacks; | |
39 bool m_requestedAnimationFrameCallbacks; | |
40 }; | |
41 | |
42 } // namespace blink | |
43 | |
44 #endif // CompositorProxyClientImpl_h | |
OLD | NEW |