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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.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/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_memory_allocation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.cc
===================================================================
--- content/common/gpu/gpu_command_buffer_stub.cc (revision 163290)
+++ content/common/gpu/gpu_command_buffer_stub.cc (working copy)
@@ -37,6 +37,7 @@
#include "content/common/gpu/stream_texture_manager_android.h"
#endif
+namespace content {
namespace {
// The GpuCommandBufferMemoryTracker class provides a bridge between the
@@ -75,7 +76,7 @@
static size_t g_last_url_hash = 0;
if (url_hash != g_last_url_hash) {
g_last_url_hash = url_hash;
- content::GetContentClient()->SetActiveURL(url);
+ GetContentClient()->SetActiveURL(url);
}
}
@@ -645,7 +646,7 @@
if (buffer.shared_memory) {
#if defined(OS_WIN)
transfer_buffer = NULL;
- content::BrokerDuplicateHandle(buffer.shared_memory->handle(),
+ BrokerDuplicateHandle(buffer.shared_memory->handle(),
channel_->renderer_pid(), &transfer_buffer, FILE_MAP_READ |
FILE_MAP_WRITE, 0);
DCHECK(transfer_buffer != NULL);
@@ -844,4 +845,6 @@
surface_->SetFrontbufferAllocation(allocation.suggest_have_frontbuffer);
}
+} // namespace content
+
#endif // defined(ENABLE_GPU)
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_memory_allocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698