Changeset 116232 in webkit
- Timestamp:
- May 5, 2012 4:04:13 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r116230 r116232 1 2012-05-05 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r116221. 4 http://trac.webkit.org/changeset/116221 5 https://bugs.webkit.org/show_bug.cgi?id=85722 6 7 broke builds that use -Wshorten-64-to-32 (Requested by pizlo 8 on #webkit). 9 10 * fast/canvas/webgl/index-validation-expected.txt: 11 * fast/canvas/webgl/index-validation.html: 12 1 13 2012-05-05 Dean Jackson <dino@apple.com> 2 14 -
trunk/LayoutTests/fast/canvas/webgl/index-validation-expected.txt
r116221 r116232 5 5 Testing with valid indices 6 6 PASS gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_COMPLETE 7 PASS g etError was expected value: NO_ERROR :7 PASS gl.getError() is 0 8 8 PASS gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0) is undefined. 9 PASS g etError was expected value: NO_ERROR :9 PASS gl.getError() is 0 10 10 Testing with out-of-range indices 11 11 Enable vertices, valid 12 PASS g etError was expected value: NO_ERROR :12 PASS gl.getError() is 0 13 13 PASS gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0) is undefined. 14 PASS g etError was expected value: NO_ERROR :14 PASS gl.getError() is 0 15 15 Enable normals, out-of-range 16 PASS g etError was expected value: NO_ERROR :16 PASS gl.getError() is 0 17 17 PASS gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0) is undefined. 18 PASS g etError was expected value: INVALID_OPERATION :18 PASS gl.getError() is gl.INVALID_OPERATION 19 19 Test with enabled attribute that does not belong to current program 20 20 Enable an extra attribute with null 21 PASS g etError was expected value: NO_ERROR :21 PASS gl.getError() is 0 22 22 PASS gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0) is undefined. 23 PASS g etError was expected value: INVALID_OPERATION :23 PASS gl.getError() is gl.INVALID_OPERATION 24 24 Enable an extra attribute with insufficient data buffer 25 PASS g etError was expected value: NO_ERROR :25 PASS gl.getError() is 0 26 26 PASS gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0) is undefined. 27 Pass large negative index to vertexAttribPointer 28 PASS getError was expected value: INVALID_VALUE : 29 PASS gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0) is undefined. 27 PASS gl.getError() is 0 30 28 PASS successfullyParsed is true 31 29 -
trunk/LayoutTests/fast/canvas/webgl/index-validation.html
r116221 r116232 1 <!DOCTYPE html>2 1 <html> 3 2 <head> 4 <meta charset="utf-8">5 <link rel="stylesheet" href="../../js/resources/js-test-style.css"/>6 3 <script src="../../js/resources/js-test-pre.js"></script> 7 4 <script src="resources/webgl-test.js"></script> … … 64 61 gl.enableVertexAttribArray(normalLoc); 65 62 shouldBe('gl.checkFramebufferStatus(gl.FRAMEBUFFER)', 'gl.FRAMEBUFFER_COMPLETE'); 66 glErrorShouldBe(gl, gl.NO_ERROR);63 shouldBe('gl.getError()', '0'); 67 64 shouldBeUndefined('gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0)'); 68 glErrorShouldBe(gl, gl.NO_ERROR);65 shouldBe('gl.getError()', '0'); 69 66 70 67 debug("Testing with out-of-range indices"); … … 77 74 gl.disableVertexAttribArray(normalLoc); 78 75 debug("Enable vertices, valid"); 79 glErrorShouldBe(gl, gl.NO_ERROR);76 shouldBe('gl.getError()', '0'); 80 77 shouldBeUndefined('gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0)'); 81 glErrorShouldBe(gl, gl.NO_ERROR);78 shouldBe('gl.getError()', '0'); 82 79 debug("Enable normals, out-of-range"); 83 80 gl.vertexAttribPointer(normalLoc, 3, gl.FLOAT, false, 7 * sizeInBytes(gl.FLOAT), 4 * sizeInBytes(gl.FLOAT)); 84 81 gl.enableVertexAttribArray(normalLoc); 85 glErrorShouldBe(gl, gl.NO_ERROR);82 shouldBe('gl.getError()', '0'); 86 83 shouldBeUndefined('gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0)'); 87 glErrorShouldBe(gl, gl.INVALID_OPERATION);84 shouldBe('gl.getError()', 'gl.INVALID_OPERATION'); 88 85 89 86 debug("Test with enabled attribute that does not belong to current program"); … … 93 90 gl.enableVertexAttribArray(extraLoc); 94 91 debug("Enable an extra attribute with null"); 95 glErrorShouldBe(gl, gl.NO_ERROR);92 shouldBe('gl.getError()', '0'); 96 93 shouldBeUndefined('gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0)'); 97 glErrorShouldBe(gl, gl.INVALID_OPERATION);94 shouldBe('gl.getError()', 'gl.INVALID_OPERATION'); 98 95 debug("Enable an extra attribute with insufficient data buffer"); 99 96 gl.vertexAttribPointer(extraLoc, 3, gl.FLOAT, false, 7 * sizeInBytes(gl.FLOAT), 4 * sizeInBytes(gl.FLOAT)); 100 glErrorShouldBe(gl, gl.NO_ERROR);97 shouldBe('gl.getError()', '0'); 101 98 shouldBeUndefined('gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0)'); 102 debug("Pass large negative index to vertexAttribPointer"); 103 gl.vertexAttribPointer(normalLoc, 3, gl.FLOAT, false, 7 * sizeInBytes(gl.FLOAT), -2000000000 * sizeInBytes(gl.FLOAT)); 104 glErrorShouldBe(gl, gl.INVALID_VALUE); 105 shouldBeUndefined('gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_SHORT, 0)'); 106 107 successfullyParsed = true; 99 shouldBe('gl.getError()', '0'); 108 100 </script> 109 101 -
trunk/Source/WebCore/ChangeLog
r116231 r116232 1 2012-05-05 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r116221. 4 http://trac.webkit.org/changeset/116221 5 https://bugs.webkit.org/show_bug.cgi?id=85722 6 7 broke builds that use -Wshorten-64-to-32 (Requested by pizlo 8 on #webkit). 9 10 * html/canvas/WebGLRenderingContext.cpp: 11 (WebCore): 12 (WebCore::WebGLRenderingContext::bufferData): 13 (WebCore::WebGLRenderingContext::bufferSubData): 14 (WebCore::WebGLRenderingContext::drawElements): 15 (WebCore::WebGLRenderingContext::getVertexAttribOffset): 16 (WebCore::WebGLRenderingContext::vertexAttribPointer): 17 * html/canvas/WebGLRenderingContext.h: 18 (WebGLRenderingContext): 19 * html/canvas/WebGLRenderingContext.idl: 20 1 21 2012-05-05 Martin Robinson <mrobinson@igalia.com> 2 22 -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
r116221 r116232 1037 1037 } 1038 1038 1039 void WebGLRenderingContext::bufferData(GC3Denum target, long longsize, GC3Denum usage, ExceptionCode& ec)1039 void WebGLRenderingContext::bufferData(GC3Denum target, GC3Dsizeiptr size, GC3Denum usage, ExceptionCode& ec) 1040 1040 { 1041 1041 UNUSED_PARAM(ec); … … 1106 1106 } 1107 1107 1108 void WebGLRenderingContext::bufferSubData(GC3Denum target, long longoffset, ArrayBuffer* data, ExceptionCode& ec)1108 void WebGLRenderingContext::bufferSubData(GC3Denum target, GC3Dintptr offset, ArrayBuffer* data, ExceptionCode& ec) 1109 1109 { 1110 1110 UNUSED_PARAM(ec); … … 1131 1131 } 1132 1132 1133 void WebGLRenderingContext::bufferSubData(GC3Denum target, long longoffset, ArrayBufferView* data, ExceptionCode& ec)1133 void WebGLRenderingContext::bufferSubData(GC3Denum target, GC3Dintptr offset, ArrayBufferView* data, ExceptionCode& ec) 1134 1134 { 1135 1135 UNUSED_PARAM(ec); … … 1899 1899 } 1900 1900 1901 void WebGLRenderingContext::drawElements(GC3Denum mode, GC3Dsizei count, GC3Denum type, long longoffset, ExceptionCode& ec)1901 void WebGLRenderingContext::drawElements(GC3Denum mode, GC3Dsizei count, GC3Denum type, GC3Dintptr offset, ExceptionCode& ec) 1902 1902 { 1903 1903 UNUSED_PARAM(ec); … … 3039 3039 } 3040 3040 3041 long longWebGLRenderingContext::getVertexAttribOffset(GC3Duint index, GC3Denum pname)3041 GC3Dsizeiptr WebGLRenderingContext::getVertexAttribOffset(GC3Duint index, GC3Denum pname) 3042 3042 { 3043 3043 if (isContextLost()) … … 4251 4251 } 4252 4252 4253 void WebGLRenderingContext::vertexAttribPointer(GC3Duint index, GC3Dint size, GC3Denum type, GC3Dboolean normalized, GC3Dsizei stride, long longoffset, ExceptionCode& ec)4253 void WebGLRenderingContext::vertexAttribPointer(GC3Duint index, GC3Dint size, GC3Denum type, GC3Dboolean normalized, GC3Dsizei stride, GC3Dintptr offset, ExceptionCode& ec) 4254 4254 { 4255 4255 UNUSED_PARAM(ec); -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.h
r116221 r116232 97 97 void blendFuncSeparate(GC3Denum srcRGB, GC3Denum dstRGB, GC3Denum srcAlpha, GC3Denum dstAlpha); 98 98 99 void bufferData(GC3Denum target, long longsize, GC3Denum usage, ExceptionCode&);99 void bufferData(GC3Denum target, GC3Dsizeiptr size, GC3Denum usage, ExceptionCode&); 100 100 void bufferData(GC3Denum target, ArrayBuffer* data, GC3Denum usage, ExceptionCode&); 101 101 void bufferData(GC3Denum target, ArrayBufferView* data, GC3Denum usage, ExceptionCode&); 102 void bufferSubData(GC3Denum target, long longoffset, ArrayBuffer* data, ExceptionCode&);103 void bufferSubData(GC3Denum target, long longoffset, ArrayBufferView* data, ExceptionCode&);102 void bufferSubData(GC3Denum target, GC3Dintptr offset, ArrayBuffer* data, ExceptionCode&); 103 void bufferSubData(GC3Denum target, GC3Dintptr offset, ArrayBufferView* data, ExceptionCode&); 104 104 105 105 GC3Denum checkFramebufferStatus(GC3Denum target); … … 142 142 void disableVertexAttribArray(GC3Duint index, ExceptionCode&); 143 143 void drawArrays(GC3Denum mode, GC3Dint first, GC3Dsizei count, ExceptionCode&); 144 void drawElements(GC3Denum mode, GC3Dsizei count, GC3Denum type, long longoffset, ExceptionCode&);144 void drawElements(GC3Denum mode, GC3Dsizei count, GC3Denum type, GC3Dintptr offset, ExceptionCode&); 145 145 146 146 void enable(GC3Denum cap); … … 175 175 PassRefPtr<WebGLUniformLocation> getUniformLocation(WebGLProgram*, const String&, ExceptionCode&); 176 176 WebGLGetInfo getVertexAttrib(GC3Duint index, GC3Denum pname, ExceptionCode&); 177 long longgetVertexAttribOffset(GC3Duint index, GC3Denum pname);177 GC3Dsizeiptr getVertexAttribOffset(GC3Duint index, GC3Denum pname); 178 178 179 179 void hint(GC3Denum target, GC3Denum mode); … … 282 282 void vertexAttrib4fv(GC3Duint index, GC3Dfloat* values, GC3Dsizei size); 283 283 void vertexAttribPointer(GC3Duint index, GC3Dint size, GC3Denum type, GC3Dboolean normalized, 284 GC3Dsizei stride, long longoffset, ExceptionCode&);284 GC3Dsizei stride, GC3Dintptr offset, ExceptionCode&); 285 285 286 286 void viewport(GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height); -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.idl
r116221 r116232 464 464 [StrictTypeChecking] void bufferData(in unsigned long target, in ArrayBuffer data, in unsigned long usage) raises (DOMException); 465 465 [StrictTypeChecking] void bufferData(in unsigned long target, in ArrayBufferView data, in unsigned long usage) raises (DOMException); 466 [StrictTypeChecking] void bufferData(in unsigned long target, in long longsize, in unsigned long usage) raises (DOMException);467 [StrictTypeChecking] void bufferSubData(in unsigned long target, in long longoffset, in ArrayBuffer data) raises (DOMException);468 [StrictTypeChecking] void bufferSubData(in unsigned long target, in long longoffset, in ArrayBufferView data) raises (DOMException);466 [StrictTypeChecking] void bufferData(in unsigned long target, in long size, in unsigned long usage) raises (DOMException); 467 [StrictTypeChecking] void bufferSubData(in unsigned long target, in long offset, in ArrayBuffer data) raises (DOMException); 468 [StrictTypeChecking] void bufferSubData(in unsigned long target, in long offset, in ArrayBufferView data) raises (DOMException); 469 469 470 470 [StrictTypeChecking] unsigned long checkFramebufferStatus(in unsigned long target); … … 508 508 [StrictTypeChecking] void disableVertexAttribArray(in unsigned long index) raises(DOMException); 509 509 [StrictTypeChecking] void drawArrays(in unsigned long mode, in long first, in long count) raises(DOMException); 510 [StrictTypeChecking] void drawElements(in unsigned long mode, in long count, in unsigned long type, in long longoffset) raises(DOMException);510 [StrictTypeChecking] void drawElements(in unsigned long mode, in long count, in unsigned long type, in long offset) raises(DOMException); 511 511 512 512 [StrictTypeChecking] void enable(in unsigned long cap); … … 568 568 [StrictTypeChecking, Custom] void getVertexAttrib(); 569 569 570 [StrictTypeChecking] long longgetVertexAttribOffset(in unsigned long index, in unsigned long pname);570 [StrictTypeChecking] long getVertexAttribOffset(in unsigned long index, in unsigned long pname); 571 571 572 572 [StrictTypeChecking] void hint(in unsigned long target, in unsigned long mode); … … 662 662 [StrictTypeChecking, Custom] void vertexAttrib4fv(in unsigned long indx, in Float32Array values); 663 663 [StrictTypeChecking] void vertexAttribPointer(in unsigned long indx, in long size, in unsigned long type, in boolean normalized, 664 in long stride, in long longoffset) raises(DOMException);664 in long stride, in long offset) raises(DOMException); 665 665 666 666 [StrictTypeChecking] void viewport(in long x, in long y, in long width, in long height);
Note: See TracChangeset
for help on using the changeset viewer.