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

Unified Diff: gpu/config/gpu_test_config.cc

Issue 15827008: Move gpu_test_config stuff from content/ to gpu/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | « gpu/config/gpu_test_config.h ('k') | gpu/config/gpu_test_config_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_test_config.cc
===================================================================
--- gpu/config/gpu_test_config.cc (revision 202179)
+++ gpu/config/gpu_test_config.cc (working copy)
@@ -2,14 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/test/gpu/gpu_test_config.h"
+#include "gpu/config/gpu_test_config.h"
#include "base/logging.h"
#include "base/sys_info.h"
-#include "content/test/gpu/gpu_test_expectations_parser.h"
#include "gpu/config/gpu_info.h"
#include "gpu/config/gpu_info_collector.h"
+#include "gpu/config/gpu_test_expectations_parser.h"
+namespace gpu {
+
namespace {
GPUTestConfig::OS GetCurrentOS() {
@@ -141,7 +143,7 @@
GPUTestConfig::AddGPUVendor(gpu_vendor);
}
-bool GPUTestBotConfig::SetGPUInfo(const gpu::GPUInfo& gpu_info) {
+bool GPUTestBotConfig::SetGPUInfo(const GPUInfo& gpu_info) {
DCHECK(validate_gpu_info_);
if (gpu_info.gpu.device_id == 0 || gpu_info.gpu.vendor_id == 0)
return false;
@@ -218,14 +220,14 @@
return Matches(config);
}
-bool GPUTestBotConfig::LoadCurrentConfig(const gpu::GPUInfo* gpu_info) {
+bool GPUTestBotConfig::LoadCurrentConfig(const GPUInfo* gpu_info) {
bool rt;
if (gpu_info == NULL) {
- 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) {
+ GPUInfo my_gpu_info;
+ GpuIDResult result;
+ result = CollectGpuID(&my_gpu_info.gpu.vendor_id,
+ &my_gpu_info.gpu.device_id);
+ if (result == kGpuIDNotSupported) {
DisableGPUInfoValidation();
rt = true;
} else {
@@ -266,3 +268,5 @@
return false;
}
+} // namespace gpu
+
« no previous file with comments | « gpu/config/gpu_test_config.h ('k') | gpu/config/gpu_test_config_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698