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

Side by Side Diff: gpu/config/gpu_info.h

Issue 21682002: Expose GPU information to Telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed more unnecessary includes. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef GPU_CONFIG_GPU_INFO_H_ 5 #ifndef GPU_CONFIG_GPU_INFO_H_
6 #define GPU_CONFIG_GPU_INFO_H_ 6 #define GPU_CONFIG_GPU_INFO_H_
7 7
8 // Provides access to the GPU information for the system 8 // Provides access to the GPU information for the system
9 // on which chrome is currently running. 9 // on which chrome is currently running.
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 bool software_rendering; 134 bool software_rendering;
135 135
136 // Whether the gpu process is running in a sandbox. 136 // Whether the gpu process is running in a sandbox.
137 bool sandboxed; 137 bool sandboxed;
138 138
139 #if defined(OS_WIN) 139 #if defined(OS_WIN)
140 // The information returned by the DirectX Diagnostics Tool. 140 // The information returned by the DirectX Diagnostics Tool.
141 DxDiagNode dx_diagnostics; 141 DxDiagNode dx_diagnostics;
142 #endif 142 #endif
143 // Note: when adding new members, please remember to update EnumerateFields
144 // in gpu_info.cc.
145
146 // In conjunction with EnumerateFields, this allows the embedder to
147 // enumerate the values in this structure without having to embed
148 // references to its specific member variables. This simplifies the
149 // addition of new fields to this type.
150 class Enumerator {
151 public:
152 virtual void AddInt64(const char* name, int64 value) = 0;
153 virtual void AddString(const char* name, const std::string& value) = 0;
154 virtual void AddBool(const char* name, bool value) = 0;
155 virtual void AddTimeDeltaInSecondsF(const char* name,
156 const base::TimeDelta& value) = 0;
157
158 // First call is for the primary GPU; subsequent calls are for the
159 // secondary GPUs.
160 virtual void AddGPUDevice(const GPUDevice& device) = 0;
161
162 protected:
163 virtual ~Enumerator() {}
164 };
165
166 // Outputs the fields in this structure to the provided enumerator.
167 void EnumerateFields(Enumerator* enumerator) const;
143 }; 168 };
144 169
145 } // namespace gpu 170 } // namespace gpu
146 171
147 #endif // GPU_CONFIG_GPU_INFO_H_ 172 #endif // GPU_CONFIG_GPU_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698