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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.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
Index: content/browser/renderer_host/render_widget_host_view_aura.h
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
index 2e8797e7eb15e21da50de682de777b82fd02719a..5b338f77c954ce4354380e4ca3ebba27548398ea 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
#include <map>
+#include <queue>
#include <vector>
#include "base/callback.h"
@@ -27,6 +28,7 @@
#include "ui/compositor/compositor_observer.h"
#include "ui/gfx/display_observer.h"
#include "ui/gfx/rect.h"
+#include "webkit/compositor_bindings/web_latency_info_impl.h"
#include "webkit/glue/webcursor.h"
namespace aura {
@@ -231,6 +233,8 @@ class RenderWidgetHostViewAura
virtual void OnCompositingAborted(ui::Compositor* compositor) OVERRIDE;
virtual void OnCompositingLockStateChanged(
ui::Compositor* compositor) OVERRIDE;
+ virtual void OnReceivedLatencyInfo(ui::Compositor* compositor,
+ const cc::LatencyInfo& latency_info) OVERRIDE;
// Overridden from ImageTransportFactoryObserver:
virtual void OnLostResources() OVERRIDE;
@@ -433,6 +437,14 @@ class RenderWidgetHostViewAura
};
CanLockCompositorState can_lock_compositor_;
+ struct FrameLatency {
+ cc::LatencyInfo latency_info;
+ int route_id;
+ int gpu_host_id;
+ };
+
+ std::queue<FrameLatency> frame_queue_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
};

Powered by Google App Engine
This is Rietveld 408576698