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

Side by Side Diff: content/renderer/input/input_handler_manager.h

Issue 2166703003: Implement Main Thread RAF Aligned Input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_main_thread_queue
Patch Set: Created 4 years, 5 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void UnregisterRoutingID(int routing_id); 62 void UnregisterRoutingID(int routing_id);
63 63
64 void ObserveGestureEventAndResultOnMainThread( 64 void ObserveGestureEventAndResultOnMainThread(
65 int routing_id, 65 int routing_id,
66 const blink::WebGestureEvent& gesture_event, 66 const blink::WebGestureEvent& gesture_event,
67 const cc::InputHandlerScrollResult& scroll_result); 67 const cc::InputHandlerScrollResult& scroll_result);
68 68
69 void NotifyInputEventHandledOnMainThread(int routing_id, 69 void NotifyInputEventHandledOnMainThread(int routing_id,
70 blink::WebInputEvent::Type, 70 blink::WebInputEvent::Type,
71 InputEventAckState); 71 InputEventAckState);
72 void ProcessVSyncAlignedInputOnMainThread(int routing_id);
72 73
73 // Callback only from the compositor's thread. 74 // Callback only from the compositor's thread.
74 void RemoveInputHandler(int routing_id); 75 void RemoveInputHandler(int routing_id);
75 76
76 // Called from the compositor's thread. 77 // Called from the compositor's thread.
77 virtual InputEventAckState HandleInputEvent( 78 virtual InputEventAckState HandleInputEvent(
78 int routing_id, 79 int routing_id,
79 const blink::WebInputEvent* input_event, 80 const blink::WebInputEvent* input_event,
80 ui::LatencyInfo* latency_info); 81 ui::LatencyInfo* latency_info);
81 82
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 120 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
120 InputHandlerManagerClient* const client_; 121 InputHandlerManagerClient* const client_;
121 // May be null. 122 // May be null.
122 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; 123 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_;
123 scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. 124 scheduler::RendererScheduler* const renderer_scheduler_; // Not owned.
124 }; 125 };
125 126
126 } // namespace content 127 } // namespace content
127 128
128 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ 129 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698