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

Unified Diff: gpu/command_buffer/client/context_support.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/client_test_helper.h ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {}
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698