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

Unified Diff: cc/trees/proxy.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: cc/trees/proxy.h
diff --git a/cc/trees/proxy.h b/cc/trees/proxy.h
index 838e44f855c2e109c3bf71676312ae8f086d156b..5fc29bcec1ed6f700225742009a2b1157323e04c 100644
--- a/cc/trees/proxy.h
+++ b/cc/trees/proxy.h
@@ -15,6 +15,7 @@
#include "base/time/time.h"
#include "base/values.h"
#include "cc/base/cc_export.h"
+#include "cc/trees/main_thread_task_runner.h"
namespace base { class SingleThreadTaskRunner; }
@@ -26,6 +27,7 @@ class Vector2d;
namespace cc {
class LayerTreeDebugState;
+class MainThreadTaskRunner;
class OutputSurface;
struct RendererCapabilities;
@@ -33,7 +35,7 @@ struct RendererCapabilities;
// the compositor over to the compositor implementation.
class CC_EXPORT Proxy {
public:
- base::SingleThreadTaskRunner* MainThreadTaskRunner() const;
+ MainThreadTaskRunner* MainThreadTaskRunner() const;
bool HasImplThread() const;
base::SingleThreadTaskRunner* ImplThreadTaskRunner() const;
@@ -100,14 +102,14 @@ class CC_EXPORT Proxy {
virtual scoped_ptr<base::Value> SchedulerAsValueForTesting();
protected:
- explicit Proxy(
- scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
+ Proxy(scoped_refptr<cc::MainThreadTaskRunner> main_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
friend class DebugScopedSetImplThread;
friend class DebugScopedSetMainThread;
friend class DebugScopedSetMainThreadBlocked;
private:
- scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
+ scoped_refptr<cc::MainThreadTaskRunner> main_task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_;
#if DCHECK_IS_ON
const base::PlatformThreadId main_thread_id_;
« no previous file with comments | « cc/trees/main_thread_task_runner.cc ('k') | cc/trees/proxy.cc » ('j') | cc/trees/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698