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

Unified Diff: content/gpu/gpu_main.cc

Issue 15745014: Move GPU device/driver info related code from content to gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 7 years, 7 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_info_collector_x11.cc ('k') | content/public/browser/gpu_data_manager.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 201645)
+++ content/gpu/gpu_main.cc (working copy)
@@ -18,14 +18,13 @@
#include "content/common/gpu/gpu_config.h"
#include "content/common/sandbox_linux.h"
#include "content/gpu/gpu_child_thread.h"
-#include "content/gpu/gpu_info_collector.h"
#include "content/gpu/gpu_process.h"
#include "content/gpu/gpu_watchdog_thread.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_switches.h"
-#include "content/public/common/gpu_switching_option.h"
#include "content/public/common/main_function_params.h"
#include "crypto/hmac.h"
+#include "gpu/config/gpu_info_collector.h"
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_surface.h"
#include "ui/gl/gl_switches.h"
@@ -56,7 +55,7 @@
namespace {
void WarmUpSandbox();
#if defined(OS_LINUX)
-bool StartSandboxLinux(const GPUInfo&, GpuWatchdogThread*, bool);
+bool StartSandboxLinux(const gpu::GPUInfo&, GpuWatchdogThread*, bool);
#elif defined(OS_WIN)
bool StartSandboxWindows(const sandbox::SandboxInterfaceInfo*);
#endif
@@ -155,7 +154,7 @@
watchdog_thread->Start();
}
- GPUInfo gpu_info;
+ gpu::GPUInfo gpu_info;
// Get vendor_id, device_id, driver_version from browser process through
// commandline switches.
DCHECK(command_line.HasSwitch(switches::kGpuVendorID) &&
@@ -201,8 +200,8 @@
// because the basic GPU information is passed down from browser process
// and we already registered them through SetGpuInfo() above.
#if !defined(OS_MACOSX)
- if (!gpu_info_collector::CollectContextGraphicsInfo(&gpu_info))
- VLOG(1) << "gpu_info_collector::CollectGraphicsInfo failed";
+ if (!gpu::CollectContextGraphicsInfo(&gpu_info))
+ VLOG(1) << "gpu::CollectGraphicsInfo failed";
GetContentClient()->SetGpuInfo(gpu_info);
#if defined(OS_LINUX)
@@ -344,7 +343,7 @@
}
#if defined(OS_LINUX)
-void WarmUpSandboxNvidia(const GPUInfo& gpu_info,
+void WarmUpSandboxNvidia(const gpu::GPUInfo& gpu_info,
bool should_initialize_gl_context) {
// We special case Optimus since the vendor_id we see may not be Nvidia.
bool uses_nvidia_driver = (gpu_info.gpu.vendor_id == 0x10de && // NVIDIA.
@@ -356,7 +355,7 @@
}
}
-bool StartSandboxLinux(const GPUInfo& gpu_info,
+bool StartSandboxLinux(const gpu::GPUInfo& gpu_info,
GpuWatchdogThread* watchdog_thread,
bool should_initialize_gl_context) {
TRACE_EVENT0("gpu", "Initialize sandbox");
« no previous file with comments | « content/gpu/gpu_info_collector_x11.cc ('k') | content/public/browser/gpu_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698