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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 1730023004: Revert of Decouple browser-specific GPU IPC messages from GPU service IPCs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | ipc/ipc_message_start.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "content/child/thread_safe_sender.h" 68 #include "content/child/thread_safe_sender.h"
69 #include "content/child/web_database_observer_impl.h" 69 #include "content/child/web_database_observer_impl.h"
70 #include "content/child/worker_thread_registry.h" 70 #include "content/child/worker_thread_registry.h"
71 #include "content/common/child_process_messages.h" 71 #include "content/common/child_process_messages.h"
72 #include "content/common/content_constants_internal.h" 72 #include "content/common/content_constants_internal.h"
73 #include "content/common/database_messages.h" 73 #include "content/common/database_messages.h"
74 #include "content/common/dom_storage/dom_storage_messages.h" 74 #include "content/common/dom_storage/dom_storage_messages.h"
75 #include "content/common/frame_messages.h" 75 #include "content/common/frame_messages.h"
76 #include "content/common/gpu/client/context_provider_command_buffer.h" 76 #include "content/common/gpu/client/context_provider_command_buffer.h"
77 #include "content/common/gpu/client/gpu_channel_host.h" 77 #include "content/common/gpu/client/gpu_channel_host.h"
78 #include "content/common/gpu/gpu_host_messages.h" 78 #include "content/common/gpu/gpu_messages.h"
79 #include "content/common/gpu/gpu_process_launch_causes.h" 79 #include "content/common/gpu/gpu_process_launch_causes.h"
80 #include "content/common/render_frame_setup.mojom.h" 80 #include "content/common/render_frame_setup.mojom.h"
81 #include "content/common/render_process_messages.h" 81 #include "content/common/render_process_messages.h"
82 #include "content/common/resource_messages.h" 82 #include "content/common/resource_messages.h"
83 #include "content/common/service_worker/embedded_worker_setup.mojom.h" 83 #include "content/common/service_worker/embedded_worker_setup.mojom.h"
84 #include "content/common/view_messages.h" 84 #include "content/common/view_messages.h"
85 #include "content/common/worker_messages.h" 85 #include "content/common/worker_messages.h"
86 #include "content/public/common/content_constants.h" 86 #include "content/public/common/content_constants.h"
87 #include "content/public/common/content_paths.h" 87 #include "content/public/common/content_paths.h"
88 #include "content/public/common/content_switches.h" 88 #include "content/public/common/content_switches.h"
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 1859
1860 // Recreate the channel if it has been lost. 1860 // Recreate the channel if it has been lost.
1861 gpu_channel_->DestroyChannel(); 1861 gpu_channel_->DestroyChannel();
1862 gpu_channel_ = NULL; 1862 gpu_channel_ = NULL;
1863 } 1863 }
1864 1864
1865 // Ask the browser for the channel name. 1865 // Ask the browser for the channel name.
1866 int client_id = 0; 1866 int client_id = 0;
1867 IPC::ChannelHandle channel_handle; 1867 IPC::ChannelHandle channel_handle;
1868 gpu::GPUInfo gpu_info; 1868 gpu::GPUInfo gpu_info;
1869 if (!Send(new GpuHostMsg_EstablishGpuChannel(cause_for_gpu_launch, &client_id, 1869 if (!Send(new GpuHostMsg_EstablishGpuChannel(cause_for_gpu_launch,
1870 &channel_handle, &gpu_info)) || 1870 &client_id,
1871 &channel_handle,
1872 &gpu_info)) ||
1871 #if defined(OS_POSIX) 1873 #if defined(OS_POSIX)
1872 channel_handle.socket.fd == -1 || 1874 channel_handle.socket.fd == -1 ||
1873 #endif 1875 #endif
1874 channel_handle.name.empty()) { 1876 channel_handle.name.empty()) {
1875 // Otherwise cancel the connection. 1877 // Otherwise cancel the connection.
1876 return NULL; 1878 return NULL;
1877 } 1879 }
1878 1880
1879 GetContentClient()->SetGpuInfo(gpu_info); 1881 GetContentClient()->SetGpuInfo(gpu_info);
1880 1882
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2177 } 2179 }
2178 2180
2179 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { 2181 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() {
2180 size_t erased = 2182 size_t erased =
2181 RenderThreadImpl::current()->pending_render_frame_connects_.erase( 2183 RenderThreadImpl::current()->pending_render_frame_connects_.erase(
2182 routing_id_); 2184 routing_id_);
2183 DCHECK_EQ(1u, erased); 2185 DCHECK_EQ(1u, erased);
2184 } 2186 }
2185 2187
2186 } // namespace content 2188 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | ipc/ipc_message_start.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698