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

Unified Diff: cc/trees/single_thread_proxy.h

Issue 1520623003: cc:: Change plumbing for external_begin_frame_source to the Scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/single_thread_proxy.h
diff --git a/cc/trees/single_thread_proxy.h b/cc/trees/single_thread_proxy.h
index a60f7139a9d50771e29e6b062654571fed47b770..b4aee1f4c526b55c58c70bfb92cfcd6687749509 100644
--- a/cc/trees/single_thread_proxy.h
+++ b/cc/trees/single_thread_proxy.h
@@ -28,11 +28,9 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
NON_EXPORTED_BASE(LayerTreeHostImplClient),
SchedulerClient {
public:
- static scoped_ptr<Proxy> Create(
- LayerTreeHost* layer_tree_host,
- LayerTreeHostSingleThreadClient* client,
- TaskRunnerProvider* task_runner_provider_,
- scoped_ptr<BeginFrameSource> external_begin_frame_source);
+ static scoped_ptr<Proxy> Create(LayerTreeHost* layer_tree_host,
+ LayerTreeHostSingleThreadClient* client,
+ TaskRunnerProvider* task_runner_provider_);
~SingleThreadProxy() override;
// Proxy implementation
@@ -54,7 +52,7 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
bool CommitRequested() const override;
bool BeginMainFrameRequested() const override;
void MainThreadHasStoppedFlinging() override {}
- void Start() override;
+ void Start(scoped_ptr<BeginFrameSource> external_begin_frame_source) override;
void Stop() override;
bool SupportsImplScrolling() const override;
bool MainFrameWillHappenForTesting() override;
@@ -120,8 +118,7 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
protected:
SingleThreadProxy(LayerTreeHost* layer_tree_host,
LayerTreeHostSingleThreadClient* client,
- TaskRunnerProvider* task_runner_provider,
- scoped_ptr<BeginFrameSource> external_begin_frame_source);
+ TaskRunnerProvider* task_runner_provider);
private:
void BeginMainFrame(const BeginFrameArgs& begin_frame_args);
@@ -142,6 +139,9 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
TaskRunnerProvider* task_runner_provider_;
+ const LayerTreeSettings settings_;
+ RenderingStatsInstrumentation* rendering_stats_instrumentation_;
brianderson 2015/12/10 23:06:02 Don't think these are needed as member variables.
Khushal 2015/12/11 02:37:40 Done. I was thinking along the lines for when we u
+
// Used on the Thread, but checked on main thread during
// initialization/shutdown.
scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_;

Powered by Google App Engine
This is Rietveld 408576698