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

Unified Diff: gpu/config/gpu_dx_diagnostics_win.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 | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | gpu/config/gpu_feature_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_dx_diagnostics_win.cc
===================================================================
--- gpu/config/gpu_dx_diagnostics_win.cc (revision 0)
+++ gpu/config/gpu_dx_diagnostics_win.cc (working copy)
@@ -12,17 +12,19 @@
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "base/win/scoped_com_initializer.h"
-#include "content/gpu/gpu_info_collector.h"
+#include "gpu/config/gpu_info_collector.h"
// Functions in this file depend on functions exported from dxguid.dll.
#pragma comment(lib, "dxguid.lib")
+namespace gpu {
+
namespace {
// Traverses the IDxDiagContainer tree and populates a tree of DxDiagNode
// structures that contains property name / value pairs and subtrees of DirectX
// diagnostic information.
-void RecurseDiagnosticTree(content::DxDiagNode* output,
+void RecurseDiagnosticTree(DxDiagNode* output,
IDxDiagContainer* container,
int depth) {
HRESULT hr;
@@ -76,8 +78,7 @@
arraysize(child_name16));
if (SUCCEEDED(hr)) {
std::string child_name8 = WideToUTF8(child_name16);
- content::DxDiagNode* output_child =
- &output->children[child_name8];
+ DxDiagNode* output_child = &output->children[child_name8];
IDxDiagContainer* child_container = NULL;
hr = container->GetChildContainer(child_name16, &child_container);
@@ -93,9 +94,7 @@
}
} // namespace anonymous
-namespace gpu_info_collector {
-
-bool GetDxDiagnostics(content::DxDiagNode* output) {
+bool GetDxDiagnostics(DxDiagNode* output) {
HRESULT hr;
bool success = false;
base::win::ScopedCOMInitializer com_initializer;
@@ -136,4 +135,4 @@
return success;
}
-} // namespace gpu_info_collector
+} // namespace gpu
« no previous file with comments | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | gpu/config/gpu_feature_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698