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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 423773002: Unified BeginFrame scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 03969f2731c73b674b22ecf45f0f4bb01eb3145c..39aba4c03e3cebf1160e0151c44dd232800a7d38 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -140,7 +140,9 @@ void LayerTreeHost::InitializeSingleThreaded(
LayerTreeHostSingleThreadClient* single_thread_client,
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner) {
InitializeProxy(
- SingleThreadProxy::Create(this, single_thread_client, main_task_runner));
+ SingleThreadProxy::Create(this,
+ single_thread_client,
+ main_task_runner));
}
void LayerTreeHost::InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing) {
@@ -437,6 +439,8 @@ void LayerTreeHost::DidLoseOutputSurface() {
if (output_surface_lost_)
return;
+ client_->DidLoseOutputSurface();
brianderson 2014/09/04 18:45:46 Why is this needed?
+
num_failed_recreate_attempts_ = 0;
output_surface_lost_ = true;
SetNeedsCommit();
@@ -1295,4 +1299,16 @@ void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) {
swap_promise_list_.clear();
}
+void LayerTreeHost::SetAuthoritativeVSyncInterval(base::TimeDelta interval) {
+ proxy_->SetAuthoritativeVSyncInterval(interval);
+}
+
+void LayerTreeHost::SetChildrenNeedBeginFrames(bool need_begin_frame) {
+ proxy_->SetChildrenNeedBeginFrames(need_begin_frame);
+}
+
+void LayerTreeHost::SendBeginFrameToChildren(const BeginFrameArgs& args) {
+ client_->SendBeginFrameToChildren(args);
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698