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

Unified Diff: content/gpu/gpu_main.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/gpu/gpu_child_thread.cc ('k') | content/gpu/gpu_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
===================================================================
--- content/gpu/gpu_main.cc (revision 163290)
+++ content/gpu/gpu_main.cc (working copy)
@@ -46,12 +46,13 @@
#include "content/public/common/sandbox_init.h"
#endif
+namespace content {
namespace {
-void WarmUpSandbox(const content::GPUInfo&, bool);
+void WarmUpSandbox(const GPUInfo&, bool);
}
// Main function for starting the Gpu process.
-int GpuMain(const content::MainFunctionParams& parameters) {
+int GpuMain(const MainFunctionParams& parameters) {
TRACE_EVENT0("gpu", "GpuMain");
base::Time start_time = base::Time::Now();
@@ -95,7 +96,7 @@
// GpuMsg_Initialize message from the browser.
bool dead_on_arrival = false;
- content::GPUInfo gpu_info;
+ GPUInfo gpu_info;
// Get vendor_id, device_id, driver_version from browser process through
// commandline switches.
DCHECK(command_line.HasSwitch(switches::kGpuVendorID) &&
@@ -113,7 +114,7 @@
command_line.GetSwitchValueASCII(switches::kGpuDriverVendor);
gpu_info.driver_version =
command_line.GetSwitchValueASCII(switches::kGpuDriverVersion);
- content::GetContentClient()->SetGpuInfo(gpu_info);
+ GetContentClient()->SetGpuInfo(gpu_info);
// We need to track that information for the WarmUpSandbox function.
bool initialized_gl_context = false;
@@ -122,7 +123,7 @@
if (!command_line.HasSwitch(switches::kSkipGpuFullInfoCollection)) {
if (!gpu_info_collector::CollectGraphicsInfo(&gpu_info))
VLOG(1) << "gpu_info_collector::CollectGraphicsInfo failed";
- content::GetContentClient()->SetGpuInfo(gpu_info);
+ GetContentClient()->SetGpuInfo(gpu_info);
// We know that CollectGraphicsInfo will initialize a GLContext.
initialized_gl_context = true;
@@ -165,7 +166,7 @@
#endif
if (do_init_sandbox) {
- gpu_info.sandboxed = content::InitializeSandbox();
+ gpu_info.sandboxed = InitializeSandbox();
}
}
#endif
@@ -251,7 +252,7 @@
}
#endif
-void WarmUpSandbox(const content::GPUInfo& gpu_info,
+void WarmUpSandbox(const GPUInfo& gpu_info,
bool should_initialize_gl_context) {
{
TRACE_EVENT0("gpu", "Warm up rand");
@@ -308,3 +309,4 @@
} // namespace.
+} // namespace content
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/gpu/gpu_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698