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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletMessagingProxy.h

Issue 2312493002: [worklets] Introduce ThreadedWorkletMessagingProxy and AnimationWorkletMessagaingProxy. (Closed)
Patch Set: rebase. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletMessagingProxy.h
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletMessagingProxy.h b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletMessagingProxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..92077b953afe70bc2ab54406b9f215891f5fa4be
--- /dev/null
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletMessagingProxy.h
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef AnimationWorkletMessagingProxy_h
+#define AnimationWorkletMessagingProxy_h
+
+#include "core/workers/ThreadedWorkletMessagingProxy.h"
+#include "wtf/Allocator.h"
+#include <memory>
+
+namespace blink {
+
+class ExecutionContext;
+class WorkerThread;
+
+class AnimationWorkletMessagingProxy final : public ThreadedWorkletMessagingProxy {
+ USING_FAST_MALLOC(AnimationWorkletMessagingProxy);
+public:
+ explicit AnimationWorkletMessagingProxy(ExecutionContext*);
+
+protected:
+ ~AnimationWorkletMessagingProxy() override;
+
+ std::unique_ptr<WorkerThread> createWorkerThread(double originTime) override;
+};
+
+} // namespace blink
+
+#endif // AnimationWorkletMessagingProxy_h

Powered by Google App Engine
This is Rietveld 408576698