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

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

Issue 1844363003: Move WebGraphicsContext3D::Attributes to Platform::ContextAttributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rm-alphadepthetc
Patch Set: move-attributes: 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 c07784ca6069a1f4b612cb17f37e2af59997c721..5c02cdc30344a9a908193cd848278e689d8ddc86 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -457,6 +457,13 @@ public:
// GPU ----------------------------------------------------------------
//
+ struct ContextAttributes {
+ bool shareResources = true;
+ bool preferDiscreteGPU = false;
+ bool noAutomaticFlushes = false;
+ bool failIfMajorPerformanceCaveat = false;
+ unsigned webGLVersion = 0;
+ };
struct GraphicsInfo {
unsigned vendorId = 0;
unsigned deviceId = 0;
@@ -475,7 +482,11 @@ public:
// 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, GraphicsInfo* glInfo) { return nullptr; }
+ virtual WebGraphicsContext3DProvider* createOffscreenGraphicsContext3DProvider(
+ const ContextAttributes&,
+ const WebURL& topDocumentURL,
+ WebGraphicsContext3DProvider* shareContext,
+ GraphicsInfo*) { 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