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

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

Issue 1018863002: compositor-worker: Introduce CompositorWorker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 9 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/core/workers/WorkerThread.cpp
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp
index a389420251d9cb1482a59e70061611d88abedf20..588024cecd00db26e60554b5df979bee0ba938aa 100644
--- a/Source/core/workers/WorkerThread.cpp
+++ b/Source/core/workers/WorkerThread.cpp
@@ -290,7 +290,7 @@ void WorkerThread::start()
if (m_thread)
return;
- m_thread = WebThreadSupportingGC::create("WebCore: Worker");
+ m_thread = createWebThreadSupportingGC();
m_thread->postTask(FROM_HERE, new Task(WTF::bind(&WorkerThread::initialize, this)));
}
@@ -359,6 +359,11 @@ void WorkerThread::initialize()
postDelayedTask(FROM_HERE, createSameThreadTask(&WorkerThread::idleHandler, this), kShortIdleHandlerDelayMs);
}
+PassOwnPtr<WebThreadSupportingGC> WorkerThread::createWebThreadSupportingGC()
+{
+ return WebThreadSupportingGC::create("WebCore: Worker");
+}
+
void WorkerThread::cleanup()
{
// This should be called before we start the shutdown procedure.

Powered by Google App Engine
This is Rietveld 408576698