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

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

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.h ('k') | content/common/gpu/client/gpu_channel_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/command_buffer_proxy_impl.cc
===================================================================
--- content/common/gpu/client/command_buffer_proxy_impl.cc (revision 163290)
+++ content/common/gpu/client/command_buffer_proxy_impl.cc (working copy)
@@ -26,6 +26,8 @@
using gpu::Buffer;
+namespace content {
+
CommandBufferProxyImpl::CommandBufferProxyImpl(
GpuChannelHost* channel,
int route_id)
@@ -261,8 +263,8 @@
base::SharedMemoryHandle handle = shm->handle();
#if defined(OS_WIN)
// Windows needs to explicitly duplicate the handle out to another process.
- if (!content::BrokerDuplicateHandle(handle, channel_->gpu_pid(),
- &handle, FILE_MAP_WRITE, 0)) {
+ if (!BrokerDuplicateHandle(handle, channel_->gpu_pid(), &handle,
+ FILE_MAP_WRITE, 0)) {
return -1;
}
#elif defined(OS_POSIX)
@@ -292,8 +294,8 @@
base::SharedMemoryHandle handle = shared_memory->handle();
#if defined(OS_WIN)
// Windows needs to explicitly duplicate the handle out to another process.
- if (!content::BrokerDuplicateHandle(handle, channel_->gpu_pid(),
- &handle, FILE_MAP_WRITE, 0)) {
+ if (!BrokerDuplicateHandle(handle, channel_->gpu_pid(), &handle,
+ FILE_MAP_WRITE, 0)) {
return -1;
}
#endif
@@ -561,3 +563,5 @@
if (last_state_.error == gpu::error::kNoError)
shared_state_->Read(&last_state_);
}
+
+} // namespace content
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.h ('k') | content/common/gpu/client/gpu_channel_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698