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

Side by Side Diff: content/gpu/gpu_dx_diagnostics_win.cc

Issue 7706011: Use precompiled headers for most large projects. (Closed) Base URL: ssh://joi@192.168.1.201/home/joi/c/chrome/src@master
Patch Set: Created 9 years, 4 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 unified diff | Download patch
OLDNEW
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 #pragma comment(lib, "dxguid.lib")
jeanluc1 2011/08/22 22:20:24 I would comment what this line does.
Jói 2011/08/24 13:56:33 Done.
17
16 namespace { 18 namespace {
17 19
18 // Traverses the IDxDiagContainer tree and populates a tree of DxDiagNode 20 // Traverses the IDxDiagContainer tree and populates a tree of DxDiagNode
19 // structures that contains property name / value pairs and subtrees of DirectX 21 // structures that contains property name / value pairs and subtrees of DirectX
20 // diagnostic information. 22 // diagnostic information.
21 void RecurseDiagnosticTree(DxDiagNode* output, 23 void RecurseDiagnosticTree(DxDiagNode* output,
22 IDxDiagContainer* container, 24 IDxDiagContainer* container,
23 int depth) { 25 int depth) {
24 HRESULT hr; 26 HRESULT hr;
25 27
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 127
126 root->Release(); 128 root->Release();
127 } 129 }
128 } 130 }
129 provider->Release(); 131 provider->Release();
130 } 132 }
131 133
132 return success; 134 return success;
133 } 135 }
134 } // namespace gpu_info_collector 136 } // namespace gpu_info_collector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698