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

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

Issue 1733353004: Introduce WorkerBackingThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 417b0b35468bc5bf86f8bca646da527703631661..6c80a73b0f400bd1067b09553335e4d39a39d243 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h
@@ -13,33 +13,22 @@ namespace blink {
class WorkerObjectProxy;
// This class is overridden in unit-tests.
-class MODULES_EXPORT CompositorWorkerThread : public WorkerThread {
+class MODULES_EXPORT CompositorWorkerThread final : public WorkerThread {
public:
static PassOwnPtr<CompositorWorkerThread> create(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin);
~CompositorWorkerThread() override;
WorkerObjectProxy& workerObjectProxy() const { return m_workerObjectProxy; }
+ WorkerBackingThread& workerBackingThread() override;
+ bool shouldAttachThreadDebugger() const override { return false; }
- // Returns the shared backing thread for all CompositorWorkers.
- static WebThreadSupportingGC* sharedBackingThread();
-
- static bool hasThreadForTest();
- static bool hasIsolateForTest();
+ static void resetSharedBackingThreadForTest();
+ static void clearSharedBackingThread();
protected:
CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin);
- // WorkerThread:
WorkerGlobalScope* createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupData>) override;
- WebThreadSupportingGC& backingThread() override;
- void didStartWorkerThread() override { }
- void willStopWorkerThread() override { }
- void initializeBackingThread() override;
- void shutdownBackingThread() override;
- v8::Isolate* initializeIsolate() override;
- void willDestroyIsolate() override;
- void destroyIsolate() override;
- void terminateV8Execution() override;
private:
WorkerObjectProxy& m_workerObjectProxy;

Powered by Google App Engine
This is Rietveld 408576698