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

Unified Diff: content/renderer/input/main_thread_event_queue.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 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 344677fa47caaf9211f8e2e39a5d6be1917f490c..991aa789d269b9989502ccdf191b5facd7d9bf9c 100644
--- a/content/renderer/input/main_thread_event_queue.h
+++ b/content/renderer/input/main_thread_event_queue.h
@@ -103,6 +103,7 @@ class CONTENT_EXPORT MainThreadEventQueue
const ui::LatencyInfo& latency,
InputEventDispatchType dispatch_type,
InputEventAckState ack_result);
+ void DispatchVSyncAlignedInput();
// Call once the main thread has handled an outstanding |type| event
// in flight.
@@ -114,6 +115,7 @@ class CONTENT_EXPORT MainThreadEventQueue
private:
friend class base::RefCountedThreadSafe<MainThreadEventQueue>;
~MainThreadEventQueue();
+ void DispatchInFlightEvent();
void QueueEvent(std::unique_ptr<EventWithDispatchType>&& event);
void SendEventNotificationToMainThread();
void PopEventOnMainThread();
@@ -127,6 +129,7 @@ class CONTENT_EXPORT MainThreadEventQueue
WebInputEventQueue<EventWithDispatchType> events_;
std::unique_ptr<EventWithDispatchType> in_flight_event_;
bool is_flinging_;
+ bool notification_sent_to_main_;
base::Lock event_queue_mutex_;
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698