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

Unified Diff: services/ui/surfaces/display_output_surface.h

Issue 2806163004: Plumbing input event latency reporting through Mus GPU. (Closed)
Patch Set: Inline LatencyTracker in DIsplayOutputService. Created 3 years, 8 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
« no previous file with comments | « services/ui/surfaces/DEPS ('k') | services/ui/surfaces/display_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « services/ui/surfaces/DEPS ('k') | services/ui/surfaces/display_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698