| Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| index 2252aeb55cb18cfb07a0cb3053e1b344fd03c4da..896cafbed0f06dc47f17a0427f55ca4d418d40ef 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| @@ -562,9 +562,10 @@ PassOwnPtr<WebGraphicsContext3DProvider> WebGLRenderingContextBase::createWebGra
|
| return nullptr;
|
| }
|
|
|
| - WebGraphicsContext3D::Attributes wgc3dAttributes = toWebGraphicsContext3DAttributes(attributes, document.topDocument().url().getString(), webGLVersion);
|
| + Platform::ContextAttributes contextAttributes = toPlatformContextAttributes(attributes, webGLVersion);
|
| Platform::GraphicsInfo glInfo;
|
| - OwnPtr<WebGraphicsContext3DProvider> contextProvider = adoptPtr(Platform::current()->createOffscreenGraphicsContext3DProvider(wgc3dAttributes, 0, &glInfo));
|
| + OwnPtr<WebGraphicsContext3DProvider> contextProvider = adoptPtr(Platform::current()->createOffscreenGraphicsContext3DProvider(
|
| + contextAttributes, document.topDocument().url(), 0, &glInfo));
|
| if (!contextProvider || shouldFailContextCreationForTesting) {
|
| shouldFailContextCreationForTesting = false;
|
| canvas->dispatchEvent(WebGLContextEvent::create(EventTypeNames::webglcontextcreationerror, false, true, extractWebGLContextCreationError(glInfo)));
|
| @@ -6006,9 +6007,10 @@ void WebGLRenderingContextBase::maybeRestoreContext(Timer<WebGLRenderingContextB
|
| m_drawingBuffer.clear();
|
| }
|
|
|
| - WebGraphicsContext3D::Attributes attributes = toWebGraphicsContext3DAttributes(m_requestedAttributes, canvas()->document().topDocument().url().getString(), version());
|
| + Platform::ContextAttributes attributes = toPlatformContextAttributes(m_requestedAttributes, version());
|
| Platform::GraphicsInfo glInfo;
|
| - OwnPtr<WebGraphicsContext3DProvider> contextProvider = adoptPtr(Platform::current()->createOffscreenGraphicsContext3DProvider(attributes, 0, &glInfo));
|
| + OwnPtr<WebGraphicsContext3DProvider> contextProvider = adoptPtr(Platform::current()->createOffscreenGraphicsContext3DProvider(
|
| + attributes, canvas()->document().topDocument().url(), 0, &glInfo));
|
| RefPtr<DrawingBuffer> buffer;
|
| if (contextProvider) {
|
| // Construct a new drawing buffer with the new WebGraphicsContext3D.
|
|
|