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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_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
Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
===================================================================
--- content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (revision 163290)
+++ content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (working copy)
@@ -37,6 +37,7 @@
#include "gpu/ipc/command_buffer_proxy.h"
#include "webkit/glue/gl_bindings_skia_cmd_buffer.h"
+namespace content {
static base::LazyInstance<base::Lock>::Leaky
g_all_shared_contexts_lock = LAZY_INSTANCE_INITIALIZER;
static base::LazyInstance<std::set<WebGraphicsContext3DCommandBufferImpl*> >
@@ -151,7 +152,7 @@
use_echo_for_swap_ack_(true) {
#if defined(OS_MACOSX) || defined(OS_WIN)
// Get ViewMsg_SwapBuffers_ACK from browser for single-threaded path.
- use_echo_for_swap_ack_ = content::IsThreadedCompositingEnabled();
+ use_echo_for_swap_ack_ = IsThreadedCompositingEnabled();
#endif
}
@@ -181,7 +182,7 @@
bool WebGraphicsContext3DCommandBufferImpl::Initialize(
const WebGraphicsContext3D::Attributes& attributes,
bool bind_generates_resources,
- content::CauseForGpuLaunch cause) {
+ CauseForGpuLaunch cause) {
TRACE_EVENT0("gpu", "WebGfxCtx3DCmdBfrImpl::initialize");
attributes_ = attributes;
@@ -1453,7 +1454,7 @@
const WebGraphicsContext3D::Attributes& attributes,
bool bind_generates_resources,
const GURL& active_url,
- content::CauseForGpuLaunch cause) {
+ CauseForGpuLaunch cause) {
WebGraphicsContext3DCommandBufferImpl* context =
new WebGraphicsContext3DCommandBufferImpl(
surface_id,
@@ -1480,8 +1481,8 @@
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context(
new WebGraphicsContext3DCommandBufferImpl(
0, active_url, factory, null_client));
- content::CauseForGpuLaunch cause =
- content::CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE;
+ CauseForGpuLaunch cause =
+ CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE;
if (context->Initialize(attributes, false, cause))
return context.release();
return NULL;
@@ -1603,3 +1604,5 @@
error_message_callback_->onErrorMessage(str, id);
}
}
+
+} // namespace content
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h ('k') | content/common/gpu/gpu_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698