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

Side by Side Diff: content/renderer/input/input_handler_manager.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_
6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_
7 7
8 #include "base/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 void ObserveWheelEventAndResultOnCompositorThread( 104 void ObserveWheelEventAndResultOnCompositorThread(
105 int routing_id, 105 int routing_id,
106 const blink::WebMouseWheelEvent& wheel_event, 106 const blink::WebMouseWheelEvent& wheel_event,
107 const cc::InputHandlerScrollResult& scroll_result); 107 const cc::InputHandlerScrollResult& scroll_result);
108 108
109 void ObserveGestureEventAndResultOnCompositorThread( 109 void ObserveGestureEventAndResultOnCompositorThread(
110 int routing_id, 110 int routing_id,
111 const blink::WebGestureEvent& gesture_event, 111 const blink::WebGestureEvent& gesture_event,
112 const cc::InputHandlerScrollResult& scroll_result); 112 const cc::InputHandlerScrollResult& scroll_result);
113 113
114 void NotifyInputEventHandledOnCompositorThread(int routing_id,
115 blink::WebInputEvent::Type,
116 InputEventAckState);
117
118 typedef base::ScopedPtrHashMap<int, // routing_id 114 typedef base::ScopedPtrHashMap<int, // routing_id
119 std::unique_ptr<InputHandlerWrapper>> 115 std::unique_ptr<InputHandlerWrapper>>
120 InputHandlerMap; 116 InputHandlerMap;
121 InputHandlerMap input_handlers_; 117 InputHandlerMap input_handlers_;
122 118
123 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 119 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
124 InputHandlerManagerClient* const client_; 120 InputHandlerManagerClient* const client_;
125 // May be null. 121 // May be null.
126 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; 122 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_;
127 scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. 123 scheduler::RendererScheduler* const renderer_scheduler_; // Not owned.
128 }; 124 };
129 125
130 } // namespace content 126 } // namespace content
131 127
132 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ 128 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/renderer/input/input_event_filter_unittest.cc ('k') | content/renderer/input/input_handler_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698