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

Unified Diff: cc/trees/proxy.h

Issue 485043003: cc: Use correct message loop proxy in BlockingTaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests. Created 6 years, 4 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 112c259dc47c04bb6eb3f45f9c517390f885c741..7dd5e6e516760f673f3cd077328ec98cead6b2c1 100644
--- a/cc/trees/proxy.h
+++ b/cc/trees/proxy.h
@@ -30,6 +30,7 @@ class Vector2d;
namespace cc {
+class BlockingTaskRunner;
class LayerTreeDebugState;
class OutputSurface;
struct RendererCapabilities;
@@ -113,6 +114,11 @@ class CC_EXPORT Proxy {
private:
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_;
+
+ // Blocking task runner which forwards tasks to |main_task_runner_| while the
+ // Proxy is alive.
+ scoped_refptr<BlockingTaskRunner> blocking_main_thread_task_runner_;
+
#if DCHECK_IS_ON
const base::PlatformThreadId main_thread_id_;
bool impl_thread_is_overridden_;

Powered by Google App Engine
This is Rietveld 408576698