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

Unified Diff: Source/core/html/parser/HTMLParserThread.cpp

Issue 100563004: Redirect HTML resource bytes directly to parser thread (Blink side CL) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_decodermove
Patch Set: Conflict fix Created 6 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
« no previous file with comments | « Source/core/html/parser/HTMLParserThread.h ('k') | Source/core/loader/DocumentLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLParserThread.cpp
diff --git a/Source/core/html/parser/HTMLParserThread.cpp b/Source/core/html/parser/HTMLParserThread.cpp
index 75c8e822dda1b9df436ddfbe932f0983f01f5474..fe033fbd8d9d02b0b47d254b75d5eca89c041310 100644
--- a/Source/core/html/parser/HTMLParserThread.cpp
+++ b/Source/core/html/parser/HTMLParserThread.cpp
@@ -65,7 +65,7 @@ HTMLParserThread* HTMLParserThread::shared()
return s_sharedThread;
}
-blink::WebThread& HTMLParserThread::ensureThread()
+blink::WebThread& HTMLParserThread::platformThread()
{
if (!m_thread)
m_thread = adoptPtr(blink::Platform::current()->createThread("HTMLParserThread"));
@@ -74,7 +74,7 @@ blink::WebThread& HTMLParserThread::ensureThread()
void HTMLParserThread::postTask(const Closure& closure)
{
- ensureThread().postTask(new Task(closure));
+ platformThread().postTask(new Task(closure));
}
} // namespace WebCore
« no previous file with comments | « Source/core/html/parser/HTMLParserThread.h ('k') | Source/core/loader/DocumentLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698