Index: content/renderer/renderer_blink_platform_impl.cc |
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc |
index c9b3e60cf1ea47f770748f0e5602765033c1c314..7e69307adcc2ffb2cf97f83cb17edcd2cdc4c0b4 100644 |
--- a/content/renderer/renderer_blink_platform_impl.cc |
+++ b/content/renderer/renderer_blink_platform_impl.cc |
@@ -27,6 +27,7 @@ |
#include "content/child/webblobregistry_impl.h" |
#include "content/child/webfileutilities_impl.h" |
#include "content/child/webmessageportchannel_impl.h" |
+#include "content/child/webthread_impl.h" |
Sami
2014/11/06 00:22:59
Is this needed?
alex clarke (OOO till 29th)
2014/11/06 00:40:49
Done.
|
#include "content/common/file_utilities_messages.h" |
#include "content/common/gpu/client/context_provider_command_buffer.h" |
#include "content/common/gpu/client/gpu_channel_host.h" |
@@ -252,6 +253,8 @@ RendererBlinkPlatformImpl::RendererBlinkPlatformImpl() |
web_database_observer_impl_.reset( |
new WebDatabaseObserverImpl(sync_message_filter_.get())); |
} |
+ |
+ main_thread_task_runner_ = renderer_scheduler_->DefaultTaskRunner(); |
} |
RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { |
@@ -260,12 +263,6 @@ RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { |
//------------------------------------------------------------------------------ |
-void RendererBlinkPlatformImpl::callOnMainThread(void (*func)(void*), |
- void* context) { |
- renderer_scheduler_->DefaultTaskRunner()->PostTask(FROM_HERE, |
- base::Bind(func, context)); |
-} |
- |
blink::WebScheduler* RendererBlinkPlatformImpl::scheduler() { |
return web_scheduler_.get(); |
} |