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

Unified Diff: cc/trees/layer_tree_impl.h

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_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 41b6f65bad608a140b836455b9f97aead4df64da..2db5cfa016ee41b46c756d46a80e8d437f757682 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -10,6 +10,7 @@
#include "base/hash_tables.h"
#include "base/values.h"
+#include "cc/debug/latency_info.h"
#include "cc/layers/layer_impl.h"
#if defined(COMPILER_GCC)
@@ -197,6 +198,10 @@ class CC_EXPORT LayerTreeImpl {
void DidUpdateScroll();
void DidEndScroll();
+ void SetLatencyInfo(const LatencyInfo& latency_info);
+ const LatencyInfo& GetLatencyInfo();
+ void ClearLatencyInfo();
+
protected:
explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);
@@ -248,6 +253,8 @@ class CC_EXPORT LayerTreeImpl {
// structural differences relative to the active tree.
bool needs_full_tree_sync_;
+ LatencyInfo latency_info_;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
};
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698