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

Unified Diff: Source/core/workers/SharedWorkerThread.cpp

Issue 1274023003: compositor-worker: Get the thread to run compositor-workers from the Platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 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 | « Source/core/workers/SharedWorkerThread.h ('k') | Source/core/workers/WorkerThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/SharedWorkerThread.cpp
diff --git a/Source/core/workers/SharedWorkerThread.cpp b/Source/core/workers/SharedWorkerThread.cpp
index 576361da373a45a004afa3888df1cff46ad59773..a65a7a678e3bd1d123e0c9c9798bc32665688d0b 100644
--- a/Source/core/workers/SharedWorkerThread.cpp
+++ b/Source/core/workers/SharedWorkerThread.cpp
@@ -57,11 +57,11 @@ PassRefPtrWillBeRawPtr<WorkerGlobalScope> SharedWorkerThread::createWorkerGlobal
return SharedWorkerGlobalScope::create(m_name, this, startupData);
}
-WebThreadSupportingGC& SharedWorkerThread::backingThread()
+WebThread& SharedWorkerThread::backingThread()
{
if (!m_thread)
- m_thread = WebThreadSupportingGC::create("SharedWorker Thread");
- return *m_thread.get();
+ m_thread = adoptPtr(Platform::current()->createThread("SharedWorker Thread"));
+ return *m_thread;
}
} // namespace blink
« no previous file with comments | « Source/core/workers/SharedWorkerThread.h ('k') | Source/core/workers/WorkerThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698