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

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

Issue 2771053003: WIP: Plumbing input event latency reporting through Mus GPU.
Patch Set: NON_EXPORTED_BASE 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 | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698