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

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

Issue 1860153002: Test path to dump dispatch/ack sequence at TouchEventQueue. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/touch_event_queue.cc
diff --git a/content/browser/renderer_host/input/touch_event_queue.cc b/content/browser/renderer_host/input/touch_event_queue.cc
index 66023b1e9cbdb980d194f2a7d20814d2154bea27..1aeb105f6a0be8eaa5b9cdfaf7f7050db6198a1b 100644
--- a/content/browser/renderer_host/input/touch_event_queue.cc
+++ b/content/browser/renderer_host/input/touch_event_queue.cc
@@ -496,6 +496,10 @@ void TouchEventQueue::ProcessTouchAck(InputEventAckState ack_result,
const uint32_t unique_touch_event_id) {
TRACE_EVENT0("input", "TouchEventQueue::ProcessTouchAck");
+ LOG(ERROR) << "======= mDebug " << __FUNCTION__
+ << " id=" << unique_touch_event_id
+ << " |q| = " << touch_queue_.size();
+
// We receive an ack for async touchmove from render.
if (!ack_pending_async_touchmove_ids_.empty() &&
ack_pending_async_touchmove_ids_.front() == unique_touch_event_id) {
@@ -779,6 +783,11 @@ void TouchEventQueue::SendTouchEventImmediately(
base::AutoReset<bool> dispatching_touch(&dispatching_touch_, true);
+ LOG(ERROR) << "======= mDebug " << __FUNCTION__
+ << " type=" << WebInputEventTraits::GetName(touch->event.type)
+ << " id=" << touch->event.uniqueTouchEventId
+ << " |q| = " << touch_queue_.size();
+
client_->SendTouchEventImmediately(*touch);
// A synchronous ack will reset |dispatching_touch_|, in which case the touch
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698