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

Unified Diff: ui/events/blink/event_with_callback.h

Issue 2695603004: [VSync Queue] Add tracing for event queuing time and coalesced count (Closed)
Patch Set: Add comments for nestable tracing and |first_original_event()| Created 3 years, 10 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 | « ui/events/blink/compositor_thread_event_queue.cc ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/event_with_callback.h
diff --git a/ui/events/blink/event_with_callback.h b/ui/events/blink/event_with_callback.h
index d222ffaec2485cc0384ff2567271f6aab9fcc615..29db7c972d67d95480beee8af5a70583d731fb30 100644
--- a/ui/events/blink/event_with_callback.h
+++ b/ui/events/blink/event_with_callback.h
@@ -55,6 +55,11 @@ class EventWithCallback {
}
size_t coalesced_count() const { return original_events_.size(); }
OriginalEventList& original_events() { return original_events_; }
+ // |first_original_event()| is used as ID for tracing.
+ blink::WebInputEvent* first_original_event() {
+ return original_events_.empty() ? nullptr
+ : original_events_.front().event_.get();
+ }
private:
friend class test::InputHandlerProxyEventQueueTest;
« no previous file with comments | « ui/events/blink/compositor_thread_event_queue.cc ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698