Changeset 61471 in webkit
- Timestamp:
- Jun 19, 2010 1:31:22 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r61465 r61471 1 2010-06-19 Zhenyao Mo <zmo@google.com> 2 3 Reviewed by Dimitri Glazkov. 4 5 fast/canvas/webgl/get-active-test.html failed in Chrome Mac 6 https://bugs.webkit.org/show_bug.cgi?id=40496 7 8 * fast/canvas/webgl/get-active-test-expected.txt: Test of two contexts and two programs, also test the uniform array name ends with "[0]". 9 * fast/canvas/webgl/script-tests/get-active-test.js: Ditto. 10 1 11 2010-06-18 Rob Buis <rwlbuis@gmail.com> 2 12 -
trunk/LayoutTests/fast/canvas/webgl/get-active-test-expected.txt
r61038 r61471 8 8 PASS program2 is non-null. 9 9 PASS context.getError() is context.NO_ERROR 10 PASS context2.getError() is context2.NO_ERROR 10 11 PASS context.getActiveUniform(program, 0).name is 'u_modelViewProjMatrix' 11 12 PASS context.getActiveUniform(program, 0).type is context.FLOAT_MAT4 … … 25 26 PASS info[ii].type is expected[ii].type 26 27 PASS info[ii].size is expected[ii].size 28 PASS info2[ii] is non-null. 29 PASS info2[ii] is non-null. 30 PASS info2[ii].name is expected2[ii].name 31 PASS info2[ii].type is expected2[ii].type 32 PASS info2[ii].size is expected2[ii].size 33 PASS info2[ii].name is expected2[ii].name 34 PASS info2[ii].type is expected2[ii].type 35 PASS info2[ii].size is expected2[ii].size 27 36 PASS context.getActiveAttrib(program, 2) is null 28 37 PASS context.getError() is context.INVALID_VALUE -
trunk/LayoutTests/fast/canvas/webgl/script-tests/get-active-test.js
r61038 r61471 12 12 shouldBeNonNull("program2"); 13 13 shouldBe("context.getError()", "context.NO_ERROR"); 14 shouldBe("context2.getError()", "context2.NO_ERROR"); 14 15 15 16 shouldBe("context.getActiveUniform(program, 0).name", "'u_modelViewProjMatrix'"); … … 48 49 } 49 50 51 // we don't know the order the uniforms will appear. 52 var info2 = [ 53 context2.getActiveUniform(program2, 0), 54 context2.getActiveUniform(program2, 1) 55 ]; 56 for (var ii = 0; ii < info2.length; ++ii) 57 shouldBeNonNull("info2[ii]"); 58 59 var expected2 = [ 60 { name: 'ival', type: context2.INT, size: 1 }, 61 { name: 'ival2[0]', type: context2.INT, size: 2 } 62 ]; 63 64 if (info2[0].name != expected2[0].name) { 65 t = info2[0]; 66 info2[0] = info2[1]; 67 info2[1] = t; 68 } 69 70 for (var ii = 0; ii < info2.length; ++ii) { 71 shouldBe("info2[ii].name", "expected2[ii].name"); 72 shouldBe("info2[ii].type", "expected2[ii].type"); 73 shouldBe("info2[ii].size", "expected2[ii].size"); 74 } 75 50 76 shouldBeNull("context.getActiveAttrib(program, 2)"); 51 77 shouldBe("context.getError()", "context.INVALID_VALUE"); -
trunk/WebKit/chromium/ChangeLog
r61468 r61471 1 2010-06-19 Zhenyao Mo <zmo@google.com> 2 3 Reviewed by Dimitri Glazkov. 4 5 fast/canvas/webgl/get-active-test.html failed in Chrome Mac 6 https://bugs.webkit.org/show_bug.cgi?id=40496 7 8 * src/WebGraphicsContext3DDefaultImpl.cpp: Call makeContextCurrent(). 9 (WebKit::WebGraphicsContext3DDefaultImpl::getActiveAttrib): 10 (WebKit::WebGraphicsContext3DDefaultImpl::getActiveUniform): 11 (WebKit::WebGraphicsContext3DDefaultImpl::readPixels): 12 1 13 2010-06-18 Aaron Boodman <aa@chromium.org> 2 14 -
trunk/WebKit/chromium/src/WebGraphicsContext3DDefaultImpl.cpp
r60290 r61471 1002 1002 bool WebGraphicsContext3DDefaultImpl::getActiveAttrib(WebGLId program, unsigned long index, ActiveInfo& info) 1003 1003 { 1004 makeContextCurrent(); 1004 1005 if (!program) { 1005 1006 synthesizeGLError(GL_INVALID_VALUE); … … 1033 1034 bool WebGraphicsContext3DDefaultImpl::getActiveUniform(WebGLId program, unsigned long index, ActiveInfo& info) 1034 1035 { 1036 makeContextCurrent(); 1035 1037 GLint maxNameLength = -1; 1036 1038 glGetProgramiv(program, GL_ACTIVE_UNIFORM_MAX_LENGTH, &maxNameLength); … … 1224 1226 void WebGraphicsContext3DDefaultImpl::readPixels(long x, long y, unsigned long width, unsigned long height, unsigned long format, unsigned long type, void* pixels) 1225 1227 { 1228 makeContextCurrent(); 1226 1229 // FIXME: remove the two glFlush calls when the driver bug is fixed, i.e., 1227 1230 // all previous rendering calls should be done before reading pixels.
Note: See TracChangeset
for help on using the changeset viewer.