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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 240163005: Deliver IPC messages together with SwapCompositorFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 44da1048eb5b92d11e3293b9072adcd354f60d93..6cbe5e194e729d7dc3a5e21d4e8526f18b41a0b0 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1273,6 +1273,10 @@ void LayerTreeHostImpl::SetTreeActivationCallback(
tree_activation_callback_ = callback;
}
+int LayerTreeHostImpl::GetSourceFrameNumber() {
+ return active_tree_->source_frame_number();
+}
+
void LayerTreeHostImpl::SetManagedMemoryPolicy(
const ManagedMemoryPolicy& policy, bool zero_budget) {
if (cached_managed_memory_policy_ == policy && zero_budget_ == zero_budget)

Powered by Google App Engine
This is Rietveld 408576698