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

Unified Diff: gpu/ipc/service/gpu_channel.cc

Issue 2493623002: Remove IPC::Endpoint. (Closed)
Patch Set: Created 4 years, 1 month 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 | « gpu/ipc/service/gpu_channel.h ('k') | ipc/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel.cc
diff --git a/gpu/ipc/service/gpu_channel.cc b/gpu/ipc/service/gpu_channel.cc
index fd71de85befb8eff4f660ca1fed4d21523783e04..29c189c5eda46f79b18bc4c4b744a8381d390bd9 100644
--- a/gpu/ipc/service/gpu_channel.cc
+++ b/gpu/ipc/service/gpu_channel.cc
@@ -643,7 +643,8 @@ base::WeakPtr<GpuChannel> GpuChannel::AsWeakPtr() {
}
base::ProcessId GpuChannel::GetClientPID() const {
- return channel_->GetPeerPID();
+ DCHECK_NE(peer_pid_, base::kNullProcessId);
+ return peer_pid_;
}
uint32_t GpuChannel::GetProcessedOrderNum() const {
@@ -670,6 +671,10 @@ bool GpuChannel::OnMessageReceived(const IPC::Message& msg) {
return false;
}
+void GpuChannel::OnChannelConnected(int32_t peer_pid) {
+ peer_pid_ = peer_pid;
+}
+
void GpuChannel::OnChannelError() {
gpu_channel_manager_->RemoveChannel(client_id_);
}
« no previous file with comments | « gpu/ipc/service/gpu_channel.h ('k') | ipc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698