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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 14092003: Add compositor support for the LatencyInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 81f905199febf1e9ff9f533074e8fd8e37215487..e177fb1e96221c994419193c10d329e826a86fe4 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -253,6 +253,8 @@ void LayerTreeHost::Layout() {
void LayerTreeHost::BeginCommitOnImplThread(LayerTreeHostImpl* host_impl) {
DCHECK(proxy_->IsImplThread());
TRACE_EVENT0("cc", "LayerTreeHost::CommitTo");
+ host_impl->SetLatencyInfo(latency_info_);
jamesr 2013/04/17 23:15:21 To make this work in impl-side painting you want t
+ latency_info_.Clear();
}
// This function commits the LayerTreeHost to an impl tree. When modifying
@@ -675,6 +677,10 @@ void LayerTreeHost::SetVisible(bool visible) {
proxy_->SetVisible(visible);
}
+void LayerTreeHost::SetLatencyInfo(const LatencyInfo& latency_info) {
+ latency_info_.MergeWith(latency_info);
+}
+
void LayerTreeHost::StartPageScaleAnimation(gfx::Vector2d target_offset,
bool use_anchor,
float scale,

Powered by Google App Engine
This is Rietveld 408576698