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

Unified Diff: cc/trees/layer_tree_impl.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
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index e4ec3c987ac9f2f6f38e362a915377a2b478c99c..3fb68d309895d85b562f15325948460ea2f396ba 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -98,6 +98,8 @@ scoped_ptr<LayerImpl> LayerTreeImpl::DetachLayerTree() {
}
void LayerTreeImpl::PushPropertiesTo(LayerTreeImpl* target_tree) {
+ target_tree->SetLatencyInfo(latency_info_);
+ latency_info_.Clear();
target_tree->SetPageScaleFactorAndLimits(
page_scale_factor(), min_page_scale_factor(), max_page_scale_factor());
target_tree->SetPageScaleDelta(
@@ -684,4 +686,16 @@ void LayerTreeImpl::UpdateRootScrollLayerSizeDelta() {
scrollable_viewport_size - original_viewport_size);
}
+void LayerTreeImpl::SetLatencyInfo(const LatencyInfo& latency_info) {
+ latency_info_.MergeWith(latency_info);
+}
+
+const LatencyInfo& LayerTreeImpl::GetLatencyInfo() {
+ return latency_info_;
+}
+
+void LayerTreeImpl::ClearLatencyInfo() {
+ latency_info_.Clear();
+}
+
} // namespace cc
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698