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

Unified Diff: third_party/mojo/src/mojo/edk/system/incoming_endpoint.cc

Issue 929433005: WIP: A couple of more ChannelMojo speedup ideas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build and test fix Created 5 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
Index: third_party/mojo/src/mojo/edk/system/incoming_endpoint.cc
diff --git a/third_party/mojo/src/mojo/edk/system/incoming_endpoint.cc b/third_party/mojo/src/mojo/edk/system/incoming_endpoint.cc
index 14f1a71816287e0a4e41dacece0838aac099b036..00ceee5cd858f96fa457d340ff3ae0ede7dd2fa0 100644
--- a/third_party/mojo/src/mojo/edk/system/incoming_endpoint.cc
+++ b/third_party/mojo/src/mojo/edk/system/incoming_endpoint.cc
@@ -38,13 +38,14 @@ void IncomingEndpoint::Close() {
}
}
-bool IncomingEndpoint::OnReadMessage(unsigned /*port*/,
- MessageInTransit* message) {
+bool IncomingEndpoint::OnReadMessage(
+ unsigned /*port*/,
+ MessageInTransit::ReadContext& reading_message) {
base::AutoLock locker(lock_);
if (!endpoint_)
return false;
- message_queue_.AddMessage(make_scoped_ptr(message));
+ message_queue_.AddMessage(reading_message.PassMessage());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698