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 f50e9184dfc804a0d2c76920c890fa3412b6a6cc..4265d3c39d9c787af57929b8128da0e3619a0699 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 { |
@@ -233,6 +235,8 @@ class RenderWidgetHostViewAura |
virtual void OnCompositingAborted(ui::Compositor* compositor) OVERRIDE; |
virtual void OnCompositingLockStateChanged( |
ui::Compositor* compositor) OVERRIDE; |
+ virtual void OnReceivedLatencyInfo(ui::Compositor* compositor, |
+ const WebKit::WebLatencyInfoImpl& latency_info) OVERRIDE; |
// Overridden from ImageTransportFactoryObserver: |
virtual void OnLostResources() OVERRIDE; |
@@ -438,6 +442,14 @@ class RenderWidgetHostViewAura |
}; |
CanLockCompositorState can_lock_compositor_; |
+ struct FrameLatency { |
+ WebKit::WebLatencyInfoImpl latency_info; |
+ int route_id; |
+ int gpu_host_id; |
+ }; |
+ |
+ std::queue<FrameLatency> frame_queue_; |
+ |
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
}; |