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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.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
Index: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h
index 6485b37b477a59f649363fa953a00cb7f8a928c4..1049f060be7ba110ff2bc42684fefb58feab644b 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h
@@ -5,35 +5,27 @@
#ifndef CompositorWorkerThread_h
#define CompositorWorkerThread_h
-#include "core/workers/WorkerThread.h"
#include "modules/ModulesExport.h"
+#include "modules/compositorworker/AbstractAnimationWorkletThread.h"
#include <memory>
namespace blink {
class InProcessWorkerObjectProxy;
-class MODULES_EXPORT CompositorWorkerThread final : public WorkerThread {
+class MODULES_EXPORT CompositorWorkerThread final : public AbstractAnimationWorkletThread {
public:
static std::unique_ptr<CompositorWorkerThread> create(PassRefPtr<WorkerLoaderProxy>, InProcessWorkerObjectProxy&, double timeOrigin);
~CompositorWorkerThread() override;
InProcessWorkerObjectProxy& workerObjectProxy() const { return m_workerObjectProxy; }
- WorkerBackingThread& workerBackingThread() override;
- bool shouldAttachThreadDebugger() const override { return false; }
-
- static void ensureSharedBackingThread();
- static void createSharedBackingThreadForTest();
-
- static void clearSharedBackingThread();
protected:
- CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, InProcessWorkerObjectProxy&, double timeOrigin);
-
WorkerOrWorkletGlobalScope* createWorkerGlobalScope(std::unique_ptr<WorkerThreadStartupData>) override;
- bool isOwningBackingThread() const override { return false; }
private:
+ CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, InProcessWorkerObjectProxy&, double timeOrigin);
+
InProcessWorkerObjectProxy& m_workerObjectProxy;
double m_timeOrigin;
};

Powered by Google App Engine
This is Rietveld 408576698