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

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

Issue 997283002: Coalesce async touch move events until the ack back from render (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 a61b90d8eca8c1707d31b3e9bfbadabb175047a0..6fc0a6e63924e466b3ce14da68c27569944bb146 100644
--- a/content/browser/renderer_host/input/touch_event_queue.h
+++ b/content/browser/renderer_host/input/touch_event_queue.h
@@ -102,6 +102,10 @@ class CONTENT_EXPORT TouchEventQueue {
bool has_handlers() const { return has_handlers_; }
+ bool IsSendingTouchEventsAsync() const { return send_touch_events_async_; }
+
+ void ReceiveAsyncTouchMoveAck() { receiving_async_touch_move_ack_ = true; }
+
private:
class TouchTimeoutHandler;
class TouchMoveSlopSuppressor;
@@ -207,6 +211,9 @@ class CONTENT_EXPORT TouchEventQueue {
// Event is saved to compare pointer positions for new touchmove events.
scoped_ptr<blink::WebTouchEvent> last_sent_touchevent_;
+ // Whether received an ACK from render on async touchmove event.
+ bool receiving_async_touch_move_ack_;
+
DISALLOW_COPY_AND_ASSIGN(TouchEventQueue);
};

Powered by Google App Engine
This is Rietveld 408576698