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

Unified Diff: chrome/common/gpu_info.h

Issue 3104011: Add Mac GPU logging code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/gpu_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gpu_info.h
===================================================================
--- chrome/common/gpu_info.h (revision 56911)
+++ chrome/common/gpu_info.h (working copy)
@@ -39,17 +39,26 @@
// should be okay.
uint32 vertex_shader_version() const;
+ // Return the version of OpenGL we are using.
+ // Major version in the high word, minor in the low word, eg version 2.5
+ // would be 0x00020005.
+ // Returns 0 if we're not using OpenGL, say because we're going through
+ // D3D instead.
+ uint32 gl_version() const;
+
// Populate variables with passed in values
void SetGraphicsInfo(uint32 vendor_id, uint32 device_id,
const std::wstring& driver_version,
uint32 pixel_shader_version,
- uint32 vertex_shader_version);
+ uint32 vertex_shader_version,
+ uint32 gl_version);
private:
uint32 vendor_id_;
uint32 device_id_;
std::wstring driver_version_;
uint32 pixel_shader_version_;
uint32 vertex_shader_version_;
+ uint32 gl_version_;
};
#endif // CHROME_COMMON_GPU_INFO_H__
« no previous file with comments | « no previous file | chrome/common/gpu_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698