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

Unified Diff: content/common/gpu/client/gpu_channel_host.cc

Issue 9340012: Move gpu client files to content_common, in content/common/gpu/client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unneeded enums Created 8 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: content/common/gpu/client/gpu_channel_host.cc
diff --git a/content/renderer/gpu/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc
similarity index 97%
rename from content/renderer/gpu/gpu_channel_host.cc
rename to content/common/gpu/client/gpu_channel_host.cc
index 05d73d5749ea1fd94a1ca72df155d4cb09fd6a1b..7b26415471b40735f2d0251fbb967f9207502c2a 100644
--- a/content/renderer/gpu/gpu_channel_host.cc
+++ b/content/common/gpu/client/gpu_channel_host.cc
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/renderer/gpu/gpu_channel_host.h"
+#include "content/common/gpu/client/gpu_channel_host.h"
#include "base/bind.h"
#include "base/message_loop.h"
#include "base/message_loop_proxy.h"
#include "content/common/child_thread.h"
+#include "content/common/gpu/client/command_buffer_proxy.h"
#include "content/common/gpu/gpu_messages.h"
-#include "content/renderer/gpu/command_buffer_proxy.h"
#include "googleurl/src/gurl.h"
#include "ipc/ipc_sync_message_filter.h"
@@ -109,7 +109,7 @@ GpuChannelHost::~GpuChannelHost() {
void GpuChannelHost::Connect(
const IPC::ChannelHandle& channel_handle,
- base::ProcessHandle renderer_process_for_gpu) {
+ base::ProcessHandle client_process_for_gpu) {
DCHECK(factory_->IsMainThread());
// Open a channel to the GPU process. We pass NULL as the main listener here
// since we need to filter everything to route it to the right thread.
@@ -135,8 +135,8 @@ void GpuChannelHost::Connect(
state_ = kConnected;
// Notify the GPU process of our process handle. This gives it the ability
- // to map renderer handles into the GPU process.
- Send(new GpuChannelMsg_Initialize(renderer_process_for_gpu));
+ // to map client handles into the GPU process.
+ Send(new GpuChannelMsg_Initialize(client_process_for_gpu));
}
void GpuChannelHost::set_gpu_info(const content::GPUInfo& gpu_info) {
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.h ('k') | content/common/gpu/client/gpu_video_decode_accelerator_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698