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

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: reference 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..32ceb1dbe3f3ff435c050709e29d4e2a0375fb57 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::backingThread()
+{
+ if (!m_thread)
+ m_thread = WebThreadSupportingGC::create("CompositorWorker Thread");
+ return *m_thread.get();
+}
+
} // namespace blink
« no previous file with comments | « Source/modules/compositorworker/CompositorWorkerThread.h ('k') | Source/modules/serviceworkers/ServiceWorkerThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698