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

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

Issue 6713005: Move a bunch of gpu/worker/plugin renderer code to content. I temporarily disabled the sad plugi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/gpu_channel_host.h ('k') | content/renderer/gpu_video_decoder_host.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/gpu_channel_host.h" 5 #include "content/renderer/gpu_channel_host.h"
6 6
7 #include "chrome/renderer/command_buffer_proxy.h"
8 #include "chrome/renderer/gpu_video_service_host.h"
9 #include "chrome/renderer/render_thread.h" 7 #include "chrome/renderer/render_thread.h"
10 #include "content/common/child_process.h" 8 #include "content/common/child_process.h"
11 #include "content/common/gpu_messages.h" 9 #include "content/common/gpu_messages.h"
10 #include "content/renderer/command_buffer_proxy.h"
11 #include "content/renderer/gpu_video_service_host.h"
12 12
13 GpuChannelHost::GpuChannelHost() : state_(kUnconnected) { 13 GpuChannelHost::GpuChannelHost() : state_(kUnconnected) {
14 } 14 }
15 15
16 GpuChannelHost::~GpuChannelHost() { 16 GpuChannelHost::~GpuChannelHost() {
17 } 17 }
18 18
19 void GpuChannelHost::Connect( 19 void GpuChannelHost::Connect(
20 const IPC::ChannelHandle& channel_handle, 20 const IPC::ChannelHandle& channel_handle,
21 base::ProcessHandle renderer_process_for_gpu) { 21 base::ProcessHandle renderer_process_for_gpu) {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Check the proxy has not already been removed after a channel error. 169 // Check the proxy has not already been removed after a channel error.
170 int route_id = command_buffer->route_id(); 170 int route_id = command_buffer->route_id();
171 if (proxies_.find(command_buffer->route_id()) != proxies_.end()) { 171 if (proxies_.find(command_buffer->route_id()) != proxies_.end()) {
172 proxies_.erase(route_id); 172 proxies_.erase(route_id);
173 router_.RemoveRoute(route_id); 173 router_.RemoveRoute(route_id);
174 } 174 }
175 175
176 delete command_buffer; 176 delete command_buffer;
177 #endif 177 #endif
178 } 178 }
OLDNEW
« no previous file with comments | « content/renderer/gpu_channel_host.h ('k') | content/renderer/gpu_video_decoder_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698