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

Unified Diff: content/gpu/gpu_dx_diagnostics_win.cc

Issue 15385003: Move GPU device/driver info related code 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 | « content/gpu/gpu_child_thread.cc ('k') | content/gpu/gpu_info_collector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_dx_diagnostics_win.cc
===================================================================
--- content/gpu/gpu_dx_diagnostics_win.cc (revision 201163)
+++ content/gpu/gpu_dx_diagnostics_win.cc (working copy)
@@ -17,12 +17,14 @@
// 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,7 +78,7 @@
arraysize(child_name16));
if (SUCCEEDED(hr)) {
std::string child_name8 = WideToUTF8(child_name16);
- content::DxDiagNode* output_child =
+ DxDiagNode* output_child =
&output->children[child_name8];
IDxDiagContainer* child_container = NULL;
@@ -93,9 +95,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 +136,4 @@
return success;
}
-} // namespace gpu_info_collector
+} // namespace gpu
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/gpu/gpu_info_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698