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

Unified Diff: cc/trees/thread_proxy.h

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/thread_proxy.h
diff --git a/cc/trees/thread_proxy.h b/cc/trees/thread_proxy.h
index 817b36ddae47528caa4a85105e17bcea215a4d9f..641cafabc220e70a9e04bef0dfdc5c49540d6394 100644
--- a/cc/trees/thread_proxy.h
+++ b/cc/trees/thread_proxy.h
@@ -26,6 +26,7 @@ class SingleThreadTaskRunner;
namespace cc {
class ContextProvider;
+class ExternalBeginFrameSource;
class InputHandlerClient;
class LayerTreeHost;
class ResourceUpdateQueue;
@@ -40,7 +41,8 @@ class CC_EXPORT ThreadProxy : public Proxy,
static scoped_ptr<Proxy> Create(
LayerTreeHost* layer_tree_host,
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
+ scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
+ scoped_ptr<ExternalBeginFrameSource> external_begin_frame_source);
virtual ~ThreadProxy();
@@ -210,7 +212,6 @@ class CC_EXPORT ThreadProxy : public Proxy,
virtual void DidManageTiles() override;
// SchedulerClient implementation
- virtual BeginFrameSource* ExternalBeginFrameSource() override;
virtual void WillBeginImplFrame(const BeginFrameArgs& args) override;
virtual void ScheduledActionSendBeginMainFrame() override;
virtual DrawResult ScheduledActionDrawAndSwapIfPossible() override;
@@ -233,7 +234,8 @@ class CC_EXPORT ThreadProxy : public Proxy,
protected:
ThreadProxy(LayerTreeHost* layer_tree_host,
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
+ scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
+ scoped_ptr<ExternalBeginFrameSource> external_begin_frame_source);
private:
// Called on main thread.
@@ -298,6 +300,8 @@ class CC_EXPORT ThreadProxy : public Proxy,
base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
+ scoped_ptr<ExternalBeginFrameSource> external_begin_frame_source_;
+
DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
};

Powered by Google App Engine
This is Rietveld 408576698