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

Unified Diff: content/common/input/web_input_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/common/input/web_input_event_queue.h
diff --git a/content/common/input/web_input_event_queue.h b/content/common/input/web_input_event_queue.h
index d8ccdd60a091cfca0a0530d0cb8cf5a1b5a4dee9..5dc2ba1f0f9044e0cbb5437f4812fe3b39b3dde3 100644
--- a/content/common/input/web_input_event_queue.h
+++ b/content/common/input/web_input_event_queue.h
@@ -56,6 +56,11 @@ class WebInputEventQueue {
return result;
}
+ const std::unique_ptr<T>& Top() {
tdresser 2016/07/20 21:43:08 Why Top instead of front?
+ DCHECK(!empty());
+ return queue_.front();
+ }
+
bool empty() const { return queue_.empty(); }
size_t size() const { return queue_.size(); }
« no previous file with comments | « no previous file | content/renderer/input/input_event_filter.h » ('j') | content/renderer/input/input_event_filter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698