Index: third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.h |
diff --git a/third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.h b/third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..deb0f5a87e227aea97421ca5de19a142d6d70564 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.h |
@@ -0,0 +1,39 @@ |
+// 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 AbstractAnimationWorkletThread_h |
+#define AbstractAnimationWorkletThread_h |
+ |
+#include "core/workers/WorkerLoaderProxy.h" |
+#include "core/workers/WorkerThread.h" |
+#include "modules/ModulesExport.h" |
+#include <memory> |
+ |
+namespace blink { |
+ |
+class WorkerReportingProxy; |
+ |
+// TODO(ikilpatrick): Remove this class up to AnimationWorkletThread once we no |
+// longer have CompositorWorker. |
+class MODULES_EXPORT AbstractAnimationWorkletThread : public WorkerThread { |
+public: |
+ ~AbstractAnimationWorkletThread() override; |
+ |
+ WorkerBackingThread& workerBackingThread() override; |
+ bool shouldAttachThreadDebugger() const override { return false; } |
+ |
+ static void ensureSharedBackingThread(); |
+ static void createSharedBackingThreadForTest(); |
+ |
+ static void clearSharedBackingThread(); |
+ |
+protected: |
+ AbstractAnimationWorkletThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&); |
+ |
+ bool isOwningBackingThread() const override { return false; } |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // AbstractAnimationWorkletThread_h |