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

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
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index eed1e5a7e151e74942e0b78d54b96f38a2f2874d..670ef8dce0e3c08469dbf4375156c887623efd2e 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -445,6 +445,8 @@ void LayerTreeHost::DidLoseOutputSurface() {
if (output_surface_lost_)
return;
+ client_->DidLoseOutputSurface();
+
num_failed_recreate_attempts_ = 0;
output_surface_lost_ = true;
SetNeedsCommit();
@@ -1323,4 +1325,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
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698