Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletMessagingProxy.h

Issue 2515363002: Introduce AnimationWorkletProxyClient and necessary plumbing to get it in worklet messaging proxy. (Closed)
Patch Set: Fix build file Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 AnimationWorkletMessagingProxy_h 5 #ifndef AnimationWorkletMessagingProxy_h
6 #define AnimationWorkletMessagingProxy_h 6 #define AnimationWorkletMessagingProxy_h
7 7
8 #include "core/dom/AnimationWorkletProxyClient.h"
8 #include "core/workers/ThreadedWorkletMessagingProxy.h" 9 #include "core/workers/ThreadedWorkletMessagingProxy.h"
9 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
10 #include <memory> 11 #include <memory>
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class ExecutionContext; 15 class ExecutionContext;
15 class WorkerThread; 16 class WorkerThread;
16 17
17 class AnimationWorkletMessagingProxy final 18 class AnimationWorkletMessagingProxy final
18 : public ThreadedWorkletMessagingProxy { 19 : public ThreadedWorkletMessagingProxy {
19 USING_FAST_MALLOC(AnimationWorkletMessagingProxy); 20 USING_FAST_MALLOC(AnimationWorkletMessagingProxy);
20 21
21 public: 22 public:
22 explicit AnimationWorkletMessagingProxy(ExecutionContext*); 23 explicit AnimationWorkletMessagingProxy(ExecutionContext*,
nhiroki 2016/11/24 06:59:00 Can you remove 'explicit'?
majidvp 2016/11/28 14:43:21 Done.
24 AnimationWorkletProxyClient*);
23 25
24 protected: 26 protected:
25 ~AnimationWorkletMessagingProxy() override; 27 ~AnimationWorkletMessagingProxy() override;
26 28
27 std::unique_ptr<WorkerThread> createWorkerThread(double originTime) override; 29 std::unique_ptr<WorkerThread> createWorkerThread(double originTime) override;
30 Persistent<AnimationWorkletProxyClient> m_proxyClient;
28 }; 31 };
29 32
30 } // namespace blink 33 } // namespace blink
31 34
32 #endif // AnimationWorkletMessagingProxy_h 35 #endif // AnimationWorkletMessagingProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698