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

Unified Diff: content/test/gpu/gpu_test_config.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/test/gpu/gpu_test_config.h ('k') | content/test/gpu/gpu_test_config_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/gpu/gpu_test_config.cc
===================================================================
--- content/test/gpu/gpu_test_config.cc (revision 201645)
+++ content/test/gpu/gpu_test_config.cc (working copy)
@@ -6,9 +6,9 @@
#include "base/logging.h"
#include "base/sys_info.h"
-#include "content/gpu/gpu_info_collector.h"
-#include "content/public/common/gpu_info.h"
#include "content/test/gpu/gpu_test_expectations_parser.h"
+#include "gpu/config/gpu_info.h"
+#include "gpu/config/gpu_info_collector.h"
namespace {
@@ -141,7 +141,7 @@
GPUTestConfig::AddGPUVendor(gpu_vendor);
}
-bool GPUTestBotConfig::SetGPUInfo(const content::GPUInfo& gpu_info) {
+bool GPUTestBotConfig::SetGPUInfo(const gpu::GPUInfo& gpu_info) {
DCHECK(validate_gpu_info_);
if (gpu_info.gpu.device_id == 0 || gpu_info.gpu.vendor_id == 0)
return false;
@@ -218,14 +218,14 @@
return Matches(config);
}
-bool GPUTestBotConfig::LoadCurrentConfig(const content::GPUInfo* gpu_info) {
+bool GPUTestBotConfig::LoadCurrentConfig(const gpu::GPUInfo* gpu_info) {
bool rt;
if (gpu_info == NULL) {
- content::GPUInfo my_gpu_info;
- gpu_info_collector::GpuIDResult result;
- result = gpu_info_collector::CollectGpuID(&my_gpu_info.gpu.vendor_id,
- &my_gpu_info.gpu.device_id);
- if (result == gpu_info_collector::kGpuIDNotSupported) {
+ gpu::GPUInfo my_gpu_info;
+ gpu::GpuIDResult result;
+ result = gpu::CollectGpuID(&my_gpu_info.gpu.vendor_id,
+ &my_gpu_info.gpu.device_id);
+ if (result == gpu::kGpuIDNotSupported) {
DisableGPUInfoValidation();
rt = true;
} else {
« no previous file with comments | « content/test/gpu/gpu_test_config.h ('k') | content/test/gpu/gpu_test_config_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698