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

Unified Diff: content/browser/renderer_host/input/touch_event_queue.h

Issue 25022003: Report LatencyInfo through trace buffer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix nits Created 7 years, 2 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: content/browser/renderer_host/input/touch_event_queue.h
diff --git a/content/browser/renderer_host/input/touch_event_queue.h b/content/browser/renderer_host/input/touch_event_queue.h
index 4d761823d9da646f003d8fdd118d02d8f369712e..807c423e12bdd4744aee1ee0303b09cc29434a36 100644
--- a/content/browser/renderer_host/input/touch_event_queue.h
+++ b/content/browser/renderer_host/input/touch_event_queue.h
@@ -28,8 +28,9 @@ class CONTENT_EXPORT TouchEventQueueClient {
const TouchEventWithLatencyInfo& event) = 0;
virtual void OnTouchEventAck(
- const TouchEventWithLatencyInfo& event,
- InputEventAckState ack_result) = 0;
+ const WebKit::WebTouchEvent& event,
+ InputEventAckState ack_result,
+ ui::LatencyInfo* latency) = 0;
};
// A queue for throttling and coalescing touch-events.
@@ -50,7 +51,7 @@ class CONTENT_EXPORT TouchEventQueue {
// At this point, the queue may send one or more gesture events and/or
// additional queued touch-events to the renderer.
void ProcessTouchAck(InputEventAckState ack_result,
- const ui::LatencyInfo& latency_info);
+ ui::LatencyInfo* latency_info);
// Empties the queue of touch events. This may result in any number of gesture
// events being sent to the renderer.
@@ -82,7 +83,7 @@ class CONTENT_EXPORT TouchEventQueue {
// Pops the touch-event from the top of the queue and sends it to the
// TouchEventQueueClient. This reduces the size of the queue by one.
void PopTouchEventToClient(InputEventAckState ack_result,
- const ui::LatencyInfo& renderer_latency_info);
+ ui::LatencyInfo* renderer_latency_info);
bool ShouldForwardToRenderer(const WebKit::WebTouchEvent& event) const;

Powered by Google App Engine
This is Rietveld 408576698