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

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

Issue 2214263007: [worklets] Split apart CompositorWorkerThread for sharing with AnimationWorkletThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename abstract class. Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698