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

Unified Diff: cc/layer_tree_host.h

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: create cc::LatencyInfo Created 7 years, 12 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/latency_info.h ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host.h
diff --git a/cc/layer_tree_host.h b/cc/layer_tree_host.h
index 95766e342c4fb8b72c3ae916122a6da4e712e756..c6e0998cba2d0391de0b8f04286019a9d209795e 100644
--- a/cc/layer_tree_host.h
+++ b/cc/layer_tree_host.h
@@ -15,6 +15,7 @@
#include "base/time.h"
#include "cc/animation_events.h"
#include "cc/cc_export.h"
+#include "cc/latency_info.h"
#include "cc/layer_tree_host_client.h"
#include "cc/layer_tree_host_common.h"
#include "cc/layer_tree_settings.h"
@@ -105,6 +106,7 @@ public:
RecreateResult recreateOutputSurface();
void didCommitAndDrawFrame() { m_client->didCommitAndDrawFrame(); }
void didCompleteSwapBuffers() { m_client->didCompleteSwapBuffers(); }
+ void onReceivedLatencyInfo(const LatencyInfo& latencyInfo) { m_client->onReceivedLatencyInfo(latencyInfo); }
void deleteContentsTexturesOnImplThread(ResourceProvider*);
virtual void acquireLayerTextures();
// Returns false if we should abort this frame due to initialization failure.
@@ -146,6 +148,8 @@ public:
void setNeedsRedraw();
bool commitRequested() const;
+ void setLatencyInfo(const LatencyInfo& latency_info);
+
void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallClockTime);
Layer* rootLayer() { return m_rootLayer.get(); }
@@ -279,6 +283,8 @@ private:
static bool s_needsFilterContext;
+ LatencyInfo m_latencyInfo;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
};
« no previous file with comments | « cc/latency_info.h ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698