Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp |
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp b/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp |
| index 41aba4d95f87a6aca1fcb5b993cc6edf415e2e3c..c4fd16b05f8034e73af7c2b2f1339b871d87b973 100644 |
| --- a/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp |
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp |
| @@ -21,24 +21,13 @@ WebGLContextAttributes toWebGLContextAttributes(const CanvasContextCreationAttri |
| return result; |
| } |
| -WebGraphicsContext3D::Attributes toWebGraphicsContext3DAttributes(const WebGLContextAttributes& attrs, const WebString& topDocumentURL, Settings* settings, unsigned webGLVersion) |
| +WebGraphicsContext3D::Attributes toWebGraphicsContext3DAttributes(const WebGLContextAttributes& attrs, const WebString& topDocumentURL, unsigned webGLVersion) |
| { |
| WebGraphicsContext3D::Attributes result; |
| - result.alpha = attrs.alpha(); |
| - result.depth = attrs.depth(); |
| - result.stencil = attrs.stencil(); |
| - result.antialias = attrs.antialias(); |
| - if (attrs.antialias()) { |
| - if (settings && !settings->openGLMultisamplingEnabled()) |
|
danakj
2016/03/31 20:27:56
This now leaves this setting unused (though it had
|
| - result.antialias = false; |
| - } |
| result.failIfMajorPerformanceCaveat = attrs.failIfMajorPerformanceCaveat(); |
| - |
| result.shareResources = false; |
| result.preferDiscreteGPU = true; |
| - |
| result.topDocumentURL = topDocumentURL; |
| - |
| result.webGLVersion = webGLVersion; |
| return result; |
| } |