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

Unified Diff: cc/trees/single_thread_proxy.h

Issue 845393002: cc: Create ProxyBeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 11 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/single_thread_proxy.h
diff --git a/cc/trees/single_thread_proxy.h b/cc/trees/single_thread_proxy.h
index a6c348acc6cd6939a7f5d38704f7c9a32ffac8be..92031021a84de53a8d485fb7cb9e91b390bd0bbe 100644
--- a/cc/trees/single_thread_proxy.h
+++ b/cc/trees/single_thread_proxy.h
@@ -23,6 +23,7 @@ class BeginFrameSource;
class ContextProvider;
class LayerTreeHost;
class LayerTreeHostSingleThreadClient;
+class ProxyBeginFrameSource;
class CC_EXPORT SingleThreadProxy : public Proxy,
NON_EXPORTED_BASE(LayerTreeHostImplClient),
@@ -32,7 +33,8 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
LayerTreeHost* layer_tree_host,
LayerTreeHostSingleThreadClient* client,
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
- scoped_ptr<BeginFrameSource> external_begin_frame_source);
+ scoped_ptr<BeginFrameSource> external_begin_frame_source,
+ ProxyBeginFrameSource* proxy_begin_frame_source);
~SingleThreadProxy() override;
// Proxy implementation
@@ -60,7 +62,6 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
bool SupportsImplScrolling() const override;
void AsValueInto(base::debug::TracedValue* state) const override;
bool MainFrameWillHappenForTesting() override;
- void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override;
// SchedulerClient implementation
void WillBeginImplFrame(const BeginFrameArgs& args) override;
@@ -77,7 +78,6 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
base::TimeDelta BeginMainFrameToCommitDurationEstimate() override;
base::TimeDelta CommitToActivateDurationEstimate() override;
void DidBeginImplFrameDeadline() override;
- void SendBeginFramesToChildren(const BeginFrameArgs& args) override;
// LayerTreeHostImplClient implementation
void UpdateRendererCapabilitiesOnImplThread() override;
@@ -119,7 +119,8 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
LayerTreeHost* layer_tree_host,
LayerTreeHostSingleThreadClient* client,
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
- scoped_ptr<BeginFrameSource> external_begin_frame_source);
+ scoped_ptr<BeginFrameSource> external_begin_frame_source,
+ ProxyBeginFrameSource* proxy_begin_frame_source);
void BeginMainFrame();
void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason);
@@ -167,6 +168,8 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
scoped_ptr<BeginFrameSource> external_begin_frame_source_;
+ ProxyBeginFrameSource* proxy_begin_frame_source_;
+
base::WeakPtrFactory<SingleThreadProxy> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(SingleThreadProxy);

Powered by Google App Engine
This is Rietveld 408576698