Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1557)

Unified Diff: src/libEGL/Display.cpp

Issue 9225046: Add adapter LUID to EGL vendor string. (Closed) Base URL: http://angleproject.googlecode.com/svn/trunk/
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/libEGL/Display.h ('k') | src/libEGL/libEGL.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/libEGL/Display.cpp
===================================================================
--- src/libEGL/Display.cpp (revision 2206)
+++ src/libEGL/Display.cpp (working copy)
@@ -319,6 +319,7 @@
}
initExtensionString();
+ initVendorString();
static const TCHAR windowName[] = TEXT("AngleHiddenWindow");
static const TCHAR className[] = TEXT("STATIC");
@@ -1244,6 +1245,27 @@
return mExtensionString.c_str();
}
+void Display::initVendorString()
+{
+ mVendorString = "Google Inc.";
+
+ if (mD3d9Ex)
+ {
+ LUID adapterLuid = {0};
+ mD3d9Ex->GetAdapterLUID(mAdapter, &adapterLuid);
+
+ char adapterLuidString[64];
+ sprintf_s(adapterLuidString, sizeof(adapterLuidString), " (adapter LUID: %08x%08x)", adapterLuid.HighPart, adapterLuid.LowPart);
+
+ mVendorString += adapterLuidString;
+ }
+}
+
+const char *Display::getVendorString() const
+{
+ return mVendorString.c_str();
+}
+
bool Display::shareHandleSupported() const
{
// PIX doesn't seem to support using share handles, so disable them.
« no previous file with comments | « src/libEGL/Display.h ('k') | src/libEGL/libEGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b