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

Unified Diff: content/renderer/render_thread_impl.h

Issue 363383002: Forward input tasks to the Blink scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup. DefaultMainThreadTaskRunner now dispatches properly. Created 6 years, 5 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: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 3bc7f9dc887ef8e135bdc1605eab2820c33b6e6e..83ea9217bffdf329f73e7fe44eac2a97072a0952 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -16,6 +16,7 @@
#include "base/threading/thread_checker.h"
#include "base/timer/timer.h"
#include "build/build_config.h"
+#include "cc/trees/main_thread_task_runner.h"
#include "content/child/child_thread.h"
#include "content/common/content_export.h"
#include "content/common/gpu/client/gpu_channel_host.h"
@@ -43,6 +44,7 @@ class WebMediaStreamCenterClient;
namespace base {
class MessageLoopProxy;
+class SingleThreadTaskRunner;
class Thread;
}
@@ -198,6 +200,10 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
return webkit_platform_support_.get();
}
+ scoped_refptr<cc::MainThreadTaskRunner> main_thread_task_runner() const {
+ return main_thread_task_runner_;
+ }
+
IPC::ForwardingMessageFilter* compositor_output_surface_filter() const {
return compositor_output_surface_filter_.get();
}
@@ -567,6 +573,9 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
// backed GpuMemoryBuffers prevent this. crbug.com/325045
base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_;
+ scoped_refptr<cc::MainThreadTaskRunner> main_thread_task_runner_;
+ scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_;
+
// Compositor settings
bool is_gpu_rasterization_enabled_;
bool is_gpu_rasterization_forced_;

Powered by Google App Engine
This is Rietveld 408576698