Index: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.h |
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.h b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..39b5a3c6fa6e09e37b901d7616539d6eb33c7a68 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.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 AnimationWorkletThread_h |
+#define AnimationWorkletThread_h |
+ |
+#include "modules/ModulesExport.h" |
+#include "modules/compositorworker/AbstractAnimationWorkletThread.h" |
+#include <memory> |
+ |
+namespace blink { |
+ |
+class WorkerReportingProxy; |
+ |
+class MODULES_EXPORT AnimationWorkletThread final : public AbstractAnimationWorkletThread { |
+public: |
+ static std::unique_ptr<AnimationWorkletThread> create(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&); |
+ ~AnimationWorkletThread() override; |
+ |
+protected: |
+ WorkerOrWorkletGlobalScope* createWorkerGlobalScope(std::unique_ptr<WorkerThreadStartupData>) final; |
+ |
+private: |
+ AnimationWorkletThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&); |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // AnimationWorkletThread_h |