Index: services/ui/surfaces/display_output_surface.h |
diff --git a/services/ui/surfaces/display_output_surface.h b/services/ui/surfaces/display_output_surface.h |
index 0861c1d7bbe1a3baaa2bd52965f7df687b4a500e..79c15b9e9fb1153b62400b7aecdc11569b9c490d 100644 |
--- a/services/ui/surfaces/display_output_surface.h |
+++ b/services/ui/surfaces/display_output_surface.h |
@@ -9,6 +9,7 @@ |
#include "cc/output/in_process_context_provider.h" |
#include "cc/output/output_surface.h" |
+#include "ui/latency/latency_tracker.h" |
namespace cc { |
class SyntheticBeginFrameSource; |
@@ -54,7 +55,7 @@ class DisplayOutputSurface : public cc::OutputSurface { |
private: |
// Called when a swap completion is signaled from ImageTransportSurface. |
void OnGpuSwapBuffersCompleted( |
- const std::vector<ui::LatencyInfo>& latency_info, |
+ const std::vector<LatencyInfo>& latency_info, |
gfx::SwapResult result, |
const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac); |
void OnVSyncParametersUpdated(base::TimeTicks timebase, |
@@ -62,6 +63,8 @@ class DisplayOutputSurface : public cc::OutputSurface { |
cc::OutputSurfaceClient* client_ = nullptr; |
cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_; |
+ LatencyTracker latency_tracker_; |
+ |
bool set_draw_rectangle_for_frame_ = false; |
// True if the draw rectangle has been set at all since the last resize. |
bool has_set_draw_rectangle_since_last_resize_ = false; |