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

Unified Diff: content/common/input/event_with_latency_info.cc

Issue 2240473002: Give MainThreadEventQueue a mutable WebInputEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed consts 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/input/event_with_latency_info.h ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input/event_with_latency_info.cc
diff --git a/content/common/input/event_with_latency_info.cc b/content/common/input/event_with_latency_info.cc
index 49359a129e8f64321e317396c78310efb2b36109..0fc592bee8471de7d8b8d977227504cc6dc28b6c 100644
--- a/content/common/input/event_with_latency_info.cc
+++ b/content/common/input/event_with_latency_info.cc
@@ -254,9 +254,10 @@ void Coalesce(const blink::WebInputEvent& event_to_coalesce,
} // namespace internal
ScopedWebInputEventWithLatencyInfo::ScopedWebInputEventWithLatencyInfo(
- const WebInputEvent& event,
+ ScopedWebInputEvent event,
const ui::LatencyInfo& latency_info)
- : event_(WebInputEventTraits::Clone(event)), latency_(latency_info) {}
+ : event_(std::move(event)), latency_(latency_info) {
+}
ScopedWebInputEventWithLatencyInfo::~ScopedWebInputEventWithLatencyInfo() {}
« no previous file with comments | « content/common/input/event_with_latency_info.h ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698