Index: gpu/command_buffer/client/context_support.h |
diff --git a/gpu/command_buffer/client/context_support.h b/gpu/command_buffer/client/context_support.h |
index 53b33c8fee666baa1a9e594f003dd16e6a09d7ad..e4b9c4f21f682c34bbf4a00709927c328a494e95 100644 |
--- a/gpu/command_buffer/client/context_support.h |
+++ b/gpu/command_buffer/client/context_support.h |
@@ -16,6 +16,10 @@ class Rect; |
class RectF; |
} |
+namespace ui { |
+class LatencyInfo; |
+} |
+ |
namespace gpu { |
struct SyncToken; |
@@ -63,6 +67,11 @@ class ContextSupport { |
virtual void SetErrorMessageCallback( |
const base::Callback<void(const char*, int32_t)>& callback) = 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; |
+ |
protected: |
ContextSupport() {} |
virtual ~ContextSupport() {} |