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

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

Issue 2233543002: Make first TouchStart and first TouchMove events on a flinging layer non-blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set non_blocking to true Created 4 years, 4 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/renderer/input/main_thread_event_queue.h
diff --git a/content/renderer/input/main_thread_event_queue.h b/content/renderer/input/main_thread_event_queue.h
index 6b0bd9bd2818e0dfc88daf2dd53c39834312ac8c..6ea6a28497bf02cf72fbf51ffecec19a589eaa66 100644
--- a/content/renderer/input/main_thread_event_queue.h
+++ b/content/renderer/input/main_thread_event_queue.h
@@ -29,6 +29,9 @@ class EventWithDispatchType : public ScopedWebInputEventWithLatencyInfo {
const std::deque<uint32_t>& eventsToAck() const { return eventsToAck_; }
InputEventDispatchType dispatchType() const { return dispatch_type_; }
+ void setDispatchType(InputEventDispatchType dispatch_type) {
+ dispatch_type_ = dispatch_type;
+ }
private:
InputEventDispatchType dispatch_type_;
@@ -134,6 +137,8 @@ class CONTENT_EXPORT MainThreadEventQueue
base::Lock event_queue_lock_;
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
+ // True if waiting on first touch move after a touch start.
+ bool waiting_for_first_touch_move_;
DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue);
};

Powered by Google App Engine
This is Rietveld 408576698