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); |
}; |