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

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

Issue 2162143002: Don't use PostTask queueing between compositor and main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix fairness of post tasks it was causing some tests to fail 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/input_router_impl.h
diff --git a/content/browser/renderer_host/input/input_router_impl.h b/content/browser/renderer_host/input/input_router_impl.h
index 39fe70870b7cea0dc46b15faa7c8a03a1ab8ed68..ca6f48f329436af317190ea8300c5708c7326656 100644
--- a/content/browser/renderer_host/input/input_router_impl.h
+++ b/content/browser/renderer_host/input/input_router_impl.h
@@ -213,20 +213,16 @@ class CONTENT_EXPORT InputRouterImpl
// message ack.
std::deque<IPC::Message*> pending_select_messages_;
- // (Similar to |mouse_move_pending_|.) True while waiting for MoveCaret_ACK.
+ // True while waiting for MoveCaret_ACK.
bool move_caret_pending_;
- // (Similar to |next_mouse_move_|.) The next MoveCaret to send, if any.
+ // The next MoveCaret to send, if any.
std::unique_ptr<IPC::Message> next_move_caret_;
- // True if a mouse move event was sent to the render view and we are waiting
- // for a corresponding InputHostMsg_HandleInputEvent_ACK message.
- bool mouse_move_pending_;
-
- // The next mouse move event to send (only non-null while mouse_move_pending_
- // is true).
- std::unique_ptr<MouseEventWithLatencyInfo> next_mouse_move_;
- MouseEventWithLatencyInfo current_mouse_move_;
+ // A queue of the mouse move events sent to the renderer. Similar
+ // to |key_queue_|.
+ typedef std::deque<MouseEventWithLatencyInfo> MouseMoveQueue;
+ MouseMoveQueue mouse_move_queue_;
// A queue of keyboard events. We can't trust data from the renderer so we
// stuff key events into a queue and pop them out on ACK, feeding our copy
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698