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

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

Issue 2912743002: [WIP] Worklet: Merge MainThreadWorklet and ThreadedWorklet into Worklet
Patch Set: WIP Created 3 years, 6 months 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 <memory> 8 #include <memory>
9 #include "core/dom/AnimationWorkletProxyClient.h" 9 #include "core/dom/AnimationWorkletProxyClient.h"
10 #include "core/workers/ThreadedWorkletMessagingProxy.h" 10 #include "core/workers/ThreadedWorkletMessagingProxy.h"
11 #include "platform/wtf/Allocator.h" 11 #include "platform/wtf/Allocator.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class ExecutionContext; 15 class ExecutionContext;
16 class WorkerThread; 16 class WorkerThread;
17 17
18 class AnimationWorkletMessagingProxy final 18 class AnimationWorkletMessagingProxy final
19 : public ThreadedWorkletMessagingProxy { 19 : public ThreadedWorkletMessagingProxy {
20 USING_FAST_MALLOC(AnimationWorkletMessagingProxy); 20 USING_FAST_MALLOC(AnimationWorkletMessagingProxy);
21 21
22 public: 22 public:
23 AnimationWorkletMessagingProxy(ExecutionContext*, 23 AnimationWorkletMessagingProxy(ExecutionContext*,
24 AnimationWorkletProxyClient*); 24 AnimationWorkletProxyClient*);
25 ~AnimationWorkletMessagingProxy() override;
25 26
26 protected: 27 protected:
27 ~AnimationWorkletMessagingProxy() override;
28
29 std::unique_ptr<WorkerThread> CreateWorkerThread(double origin_time) override; 28 std::unique_ptr<WorkerThread> CreateWorkerThread(double origin_time) override;
30 Persistent<AnimationWorkletProxyClient> proxy_client_; 29 Persistent<AnimationWorkletProxyClient> proxy_client_;
31 }; 30 };
32 31
33 } // namespace blink 32 } // namespace blink
34 33
35 #endif // AnimationWorkletMessagingProxy_h 34 #endif // AnimationWorkletMessagingProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698