| 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 77a92599716e998d647981dfc10d0c20bf87ac87..1fc47f69e54495f745e741aa4ae23c57a3af0c3f 100644
|
| --- a/third_party/WebKit/public/platform/Platform.h
|
| +++ b/third_party/WebKit/public/platform/Platform.h
|
| @@ -460,6 +460,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;
|
| @@ -479,7 +486,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
|
|
|