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

Unified Diff: gpu/command_buffer/client/gpu_control.h

Issue 2806163004: Plumbing input event latency reporting through Mus GPU. (Closed)
Patch Set: Removing commented out code. 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
Index: gpu/command_buffer/client/gpu_control.h
diff --git a/gpu/command_buffer/client/gpu_control.h b/gpu/command_buffer/client/gpu_control.h
index 519712edc4af501b55fda1febd8b377be454fcbf..b98d79c8527f4de97490f42fa6868c56ea11e265 100644
--- a/gpu/command_buffer/client/gpu_control.h
+++ b/gpu/command_buffer/client/gpu_control.h
@@ -24,6 +24,10 @@ namespace base {
class Lock;
}
+namespace ui {
+class LatencyInfo;
+}
+
namespace gpu {
class GpuControlClient;
struct SyncToken;
@@ -115,6 +119,11 @@ class GPU_EXPORT GpuControl {
// first so does not need to be flushed.
virtual bool CanWaitUnverifiedSyncToken(const SyncToken& sync_token) = 0;
+ // Add |latency_info| to be reported and augumented with GPU latency
+ // components next time there is a GPU buffer swap.
+ virtual void AddLatencyInfo(
+ const std::vector<ui::LatencyInfo>& latency_info) = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(GpuControl);
};

Powered by Google App Engine
This is Rietveld 408576698