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

Unified Diff: content/renderer/input/main_thread_event_queue.cc

Issue 2710663003: Merging of touch event ack ids was inconsistent. (Closed)
Patch Set: Whoops a bit to aggressive; still need the clear Created 3 years, 10 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 | content/renderer/input/main_thread_event_queue_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/main_thread_event_queue.cc
diff --git a/content/renderer/input/main_thread_event_queue.cc b/content/renderer/input/main_thread_event_queue.cc
index b629b408ae2ed0a912d116d889855904c9d3a89b..9341efab8891d001dfdd53bfc8cf86d792e3f849 100644
--- a/content/renderer/input/main_thread_event_queue.cc
+++ b/content/renderer/input/main_thread_event_queue.cc
@@ -42,13 +42,14 @@ EventWithDispatchType::EventWithDispatchType(
EventWithDispatchType::~EventWithDispatchType() {}
void EventWithDispatchType::CoalesceWith(const EventWithDispatchType& other) {
tdresser 2017/02/22 15:53:47 This method doesn't make it super clear whether yo
dtapuska 2017/02/22 18:43:48 The ScopedWebInputEventWithLatencyInfo already DCH
- if (other.dispatch_type_ == DISPATCH_TYPE_BLOCKING) {
+ if (dispatch_type_ == DISPATCH_TYPE_BLOCKING) {
blocking_coalesced_event_ids_.push_back(
- ui::WebInputEventTraits::GetUniqueTouchEventId(other.event()));
+ ui::WebInputEventTraits::GetUniqueTouchEventId(event()));
} else {
non_blocking_coalesced_count_++;
}
ScopedWebInputEventWithLatencyInfo::CoalesceWith(other);
+ dispatch_type_ = other.dispatch_type_;
last_coalesced_timestamp_ = base::TimeTicks::Now();
}
« no previous file with comments | « no previous file | content/renderer/input/main_thread_event_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698