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

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

Issue 1832263002: Remove WGC3D typedefs and move WebGraphicsInfo to Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: webgraphicsinfo: rebase Created 4 years, 9 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
Index: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index 8f39386ce39e01b52858cebe2df32a72de6a8913..aa24d26c0328c6ad64203e7f699742a017c0243f 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -455,12 +455,26 @@ public:
// GPU ----------------------------------------------------------------
//
+ struct GraphicsInfo {
+ unsigned vendorId = 0;
+ unsigned deviceId = 0;
+ unsigned processCrashCount = 0;
+ unsigned resetNotificationStrategy = 0;
+ bool sandboxed = false;
+ bool testFailContext = false;
+ bool amdSwitchable = false;
+ bool optimus = false;
+ WebString vendorInfo;
+ WebString rendererInfo;
+ WebString driverVersion;
+ WebString errorMessage;
+ };
// Returns a newly allocated and initialized offscreen context provider,
// backed by an independent context. Returns null if the context cannot be
// created or initialized.
// Passing an existing provider to shareContext will create the new context
// in the same share group as the one passed.
- virtual WebGraphicsContext3DProvider* createOffscreenGraphicsContext3DProvider(const WebGraphicsContext3D::Attributes&, WebGraphicsContext3DProvider* shareContext, WebGraphicsContext3D::WebGraphicsInfo* glInfo) { return nullptr; }
+ virtual WebGraphicsContext3DProvider* createOffscreenGraphicsContext3DProvider(const WebGraphicsContext3D::Attributes&, WebGraphicsContext3DProvider* shareContext, GraphicsInfo* glInfo) { return nullptr; }
// Returns a newly allocated and initialized offscreen context provider,
// backed by the process-wide shared main thread context. Returns null if

Powered by Google App Engine
This is Rietveld 408576698