WebGL clamps drawingBufferWidth to 4096 pixels on a 5120 monitor/canvas
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Oct 2017 19:17:33 +0000 (19:17 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Oct 2017 19:17:33 +0000 (19:17 +0000)
commit2d4a35e59440c86d29005d034b36fea44ca7e94c
treed41fec41b897cc64c7c5a740a1a31f13a678d3b8
parenta233bb8ef2b85d2724d13cd73d3dbd8c0d7dc743
WebGL clamps drawingBufferWidth to 4096 pixels on a 5120 monitor/canvas
https://bugs.webkit.org/show_bug.cgi?id=178223
<rdar://problem/34597567>

Reviewed by Antoine Quint.

Source/WebCore:

Remove the limit of 4k on the width/height of the renderbuffer.

Test: fast/canvas/webgl/large-drawing-buffer-resize.html

* html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::reshape):

LayoutTests:

Test that resizes an already large buffer to make sure it
doesn't get clamped to 4k.

* fast/canvas/webgl/large-drawing-buffer-resize-expected.txt: Added.
* fast/canvas/webgl/large-drawing-buffer-resize.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/webgl/large-drawing-buffer-resize-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/webgl/large-drawing-buffer-resize.html [new file with mode: 0644]
LayoutTests/platform/ios/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp