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

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: minor input event changes Created 8 years 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/layer_tree_host.h
diff --git a/cc/layer_tree_host.h b/cc/layer_tree_host.h
index 5c1ce68d759f4fb174708b7ee6792bbce1209f50..29c1641e5017965cdcf4582ccf9898e091b9abda 100644
--- a/cc/layer_tree_host.h
+++ b/cc/layer_tree_host.h
@@ -27,6 +27,7 @@
#include "cc/scoped_ptr_vector.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/rect.h"
+#include "webkit/compositor_bindings/web_latency_info_impl.h"
#if defined(COMPILER_GCC)
namespace BASE_HASH_NAMESPACE {
@@ -103,6 +104,7 @@ public:
RecreateResult recreateOutputSurface();
void didCommitAndDrawFrame() { m_client->didCommitAndDrawFrame(); }
void didCompleteSwapBuffers() { m_client->didCompleteSwapBuffers(); }
+ void onReceivedLatencyInfo(const WebKit::WebLatencyInfoImpl& latencyInfo) { m_client->onReceivedLatencyInfo(latencyInfo); }
void deleteContentsTexturesOnImplThread(ResourceProvider*);
virtual void acquireLayerTextures();
// Returns false if we should abort this frame due to initialization failure.
@@ -144,6 +146,8 @@ public:
void setNeedsRedraw();
bool commitRequested() const;
+ void setLatencyInfo(const WebKit::WebLatencyInfoImpl& latency_info);
+
void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallClockTime);
virtual void didAddAnimation();
@@ -273,6 +277,8 @@ private:
static bool s_needsFilterContext;
+ WebKit::WebLatencyInfoImpl m_latencyInfo;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
};
« cc/gl_renderer.h ('K') | « cc/input_handler.h ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698