| 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
|
|
|