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