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

Unified Diff: third_party/WebKit/public/platform/WebGraphicsContext3D.h

Issue 1384233003: Improve usefulness of webglcontextcreationerror statusMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « third_party/WebKit/public/platform/Platform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebGraphicsContext3D.h
diff --git a/third_party/WebKit/public/platform/WebGraphicsContext3D.h b/third_party/WebKit/public/platform/WebGraphicsContext3D.h
index 7fb30ca84966e4e8d33a94de1554ecab0075d515..02da5cb82dcae28e8525bf7f0c4764bd15ee658c 100644
--- a/third_party/WebKit/public/platform/WebGraphicsContext3D.h
+++ b/third_party/WebKit/public/platform/WebGraphicsContext3D.h
@@ -63,15 +63,6 @@ typedef struct __WGC3Dsync *WGC3Dsync;
// Typedef for server-side objects like OpenGL textures and program objects.
typedef WGC3Duint WebGLId;
-struct WebGLInfo {
- WGC3Duint vendorId;
- WGC3Duint deviceId;
- WebString vendorInfo;
- WebString rendererInfo;
- WebString driverVersion;
- WebString contextInfoCollectionFailure;
-};
-
// This interface abstracts the operations performed by the
// GraphicsContext3D in order to implement WebGL. Nearly all of the
// methods exposed on this interface map directly to entry points in
@@ -123,6 +114,32 @@ public:
WebString topDocumentURL;
};
+ struct WebGraphicsInfo {
+ WebGraphicsInfo()
+ : vendorId(0)
tkent 2015/10/20 23:08:32 nit: C++11 non-static member initializer would sim
sivag 2015/10/21 10:10:17 Done.
+ , deviceId(0)
+ , processCrashCount(0)
+ , resetNotificationStrategy(false)
+ , sandboxed(false)
+ , testFailContext(false)
+ , amdSwitchable(false)
+ , optimus(false)
+ {
+ }
+ unsigned vendorId;
+ unsigned deviceId;
+ unsigned processCrashCount;
+ unsigned resetNotificationStrategy;
+ bool sandboxed;
+ bool testFailContext;
+ bool amdSwitchable;
+ bool optimus;
+ WebString vendorInfo;
+ WebString rendererInfo;
+ WebString driverVersion;
+ WebString errorMessage;
+ };
+
class WebGraphicsContextLostCallback {
public:
virtual void onContextLost() = 0;
« no previous file with comments | « third_party/WebKit/public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698