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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerThread.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/modules/serviceworkers/ServiceWorkerThread.h ('k') | Source/platform/WebThreadSupportingGC.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/ServiceWorkerThread.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerThread.cpp b/Source/modules/serviceworkers/ServiceWorkerThread.cpp
index 3a27a068169248e12f9213c16467cded55242b09..a76f73a349f8987a6988919ac5468118dfb639f7 100644
--- a/Source/modules/serviceworkers/ServiceWorkerThread.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerThread.cpp
@@ -56,11 +56,11 @@ PassRefPtrWillBeRawPtr<WorkerGlobalScope> ServiceWorkerThread::createWorkerGloba
return ServiceWorkerGlobalScope::create(this, startupData);
}
-WebThreadSupportingGC& ServiceWorkerThread::backingThread()
+WebThread& ServiceWorkerThread::backingThread()
{
if (!m_thread)
- m_thread = WebThreadSupportingGC::create("ServiceWorker Thread");
- return *m_thread.get();
+ m_thread = adoptPtr(Platform::current()->createThread("ServiceWorker Thread"));
+ return *m_thread;
}
} // namespace blink
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerThread.h ('k') | Source/platform/WebThreadSupportingGC.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698