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

Unified Diff: Source/web/WebKit.cpp

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing #include Created 5 years, 3 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/platform/testing/UnitTestHelpers.cpp ('k') | Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebKit.cpp
diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp
index 5e9638c9433ed6b48d9ca8ca44b156bcd88f6969..dca9111bed0dd0637169403bbdb84a930ad6a32c 100644
--- a/Source/web/WebKit.cpp
+++ b/Source/web/WebKit.cpp
@@ -81,7 +81,7 @@ public:
}
};
-class MainThreadTaskRunner: public WebThread::Task {
+class MainThreadTaskRunner: public WebTaskRunner::Task {
WTF_MAKE_NONCOPYABLE(MainThreadTaskRunner);
public:
MainThreadTaskRunner(WTF::MainThreadFunction* function, void* context)
@@ -156,7 +156,7 @@ static void cryptographicallyRandomValues(unsigned char* buffer, size_t length)
static void callOnMainThreadFunction(WTF::MainThreadFunction function, void* context)
{
- Platform::current()->mainThread()->postTask(FROM_HERE, new MainThreadTaskRunner(function, context));
+ Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, new MainThreadTaskRunner(function, context));
}
static void adjustAmountOfExternalAllocatedMemory(int size)
@@ -184,7 +184,7 @@ void initializeWithoutV8(Platform* platform)
s_pendingGCRunner = new PendingGCRunner;
currentThread->addTaskObserver(s_pendingGCRunner);
- OwnPtr<MessageLoopInterruptor> interruptor = adoptPtr(new MessageLoopInterruptor(currentThread));
+ OwnPtr<MessageLoopInterruptor> interruptor = adoptPtr(new MessageLoopInterruptor(currentThread->taskRunner()));
ThreadState::current()->addInterruptor(interruptor.release());
}
« no previous file with comments | « Source/platform/testing/UnitTestHelpers.cpp ('k') | Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698