OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Functions to enumerate the Dx Diagnostic Tool hierarchy and build up | 5 // Functions to enumerate the Dx Diagnostic Tool hierarchy and build up |
6 // a tree of nodes with name / value properties. | 6 // a tree of nodes with name / value properties. |
7 | 7 |
8 #define INITGUID | 8 #define INITGUID |
9 #include <dxdiag.h> | 9 #include <dxdiag.h> |
10 #include <windows.h> | 10 #include <windows.h> |
11 | 11 |
12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "content/gpu/gpu_info_collector.h" | 14 #include "content/gpu/gpu_info_collector.h" |
15 | 15 |
| 16 // Functions in this file depend on functions exported from dxguid.dll. |
| 17 #pragma comment(lib, "dxguid.lib") |
| 18 |
16 namespace { | 19 namespace { |
17 | 20 |
18 // Traverses the IDxDiagContainer tree and populates a tree of DxDiagNode | 21 // Traverses the IDxDiagContainer tree and populates a tree of DxDiagNode |
19 // structures that contains property name / value pairs and subtrees of DirectX | 22 // structures that contains property name / value pairs and subtrees of DirectX |
20 // diagnostic information. | 23 // diagnostic information. |
21 void RecurseDiagnosticTree(DxDiagNode* output, | 24 void RecurseDiagnosticTree(DxDiagNode* output, |
22 IDxDiagContainer* container, | 25 IDxDiagContainer* container, |
23 int depth) { | 26 int depth) { |
24 HRESULT hr; | 27 HRESULT hr; |
25 | 28 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 128 |
126 root->Release(); | 129 root->Release(); |
127 } | 130 } |
128 } | 131 } |
129 provider->Release(); | 132 provider->Release(); |
130 } | 133 } |
131 | 134 |
132 return success; | 135 return success; |
133 } | 136 } |
134 } // namespace gpu_info_collector | 137 } // namespace gpu_info_collector |
OLD | NEW |