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

Unified Diff: Source/modules/compositorworker/CompositorWorkerThread.cpp

Issue 1100413004: workers: Move ownership of WebThread from WorkerThread (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 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: Source/modules/compositorworker/CompositorWorkerThread.cpp
diff --git a/Source/modules/compositorworker/CompositorWorkerThread.cpp b/Source/modules/compositorworker/CompositorWorkerThread.cpp
index 7cdfff502319b33b52c384ab3c4c09777a5786d2..b547d9af59df02e4323973fd704cbf01272e37df 100644
--- a/Source/modules/compositorworker/CompositorWorkerThread.cpp
+++ b/Source/modules/compositorworker/CompositorWorkerThread.cpp
@@ -20,7 +20,7 @@ PassRefPtr<CompositorWorkerThread> CompositorWorkerThread::create(PassRefPtr<Wor
}
CompositorWorkerThread::CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerObjectProxy& workerObjectProxy, double timeOrigin, PassOwnPtr<WorkerThreadStartupData> startupData)
- : WorkerThread("CompositorWorker Thread", workerLoaderProxy, workerObjectProxy, startupData)
+ : WorkerThread(workerLoaderProxy, workerObjectProxy, startupData)
, m_workerObjectProxy(workerObjectProxy)
, m_timeOrigin(timeOrigin)
{
@@ -35,4 +35,11 @@ PassRefPtrWillBeRawPtr<WorkerGlobalScope> CompositorWorkerThread::createWorkerGl
return CompositorWorkerGlobalScope::create(this, startupData, m_timeOrigin);
}
+WebThreadSupportingGC* CompositorWorkerThread::webThreadSupportingGC()
+{
+ if (!m_thread)
+ m_thread = WebThreadSupportingGC::create("CompositorWorker Thread");
+ return m_thread.get();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698