Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: LayoutTests/fast/canvas/webgl/resources/tex-image-and-sub-image-2d-with-image.js

Issue 10441002: Merge 117918 - Must set/reset pixel unpack alignment to 1 during texSubImage2D (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 function generateTest(pixelFormat, pixelType, pathToTestRoot, prologue) { 1 function generateTest(pixelFormat, pixelType, pathToTestRoot, prologue) {
2 var wtu = WebGLTestUtils; 2 var wtu = WebGLTestUtils;
3 var gl = null; 3 var gl = null;
4 var textureLoc = null; 4 var textureLoc = null;
5 var successfullyParsed = false; 5 var successfullyParsed = false;
6 var imgCanvas; 6 var imgCanvas;
7 var red = [255, 0, 0]; 7 var red = [255, 0, 0];
8 var green = [0, 255, 0]; 8 var green = [0, 255, 0];
9 9
10 var init = function() 10 var init = function()
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 function runTest3(image) { 120 function runTest3(image) {
121 runTestOnImage(image); 121 runTestOnImage(image);
122 122
123 glErrorShouldBe(gl, gl.NO_ERROR, "should be no errors"); 123 glErrorShouldBe(gl, gl.NO_ERROR, "should be no errors");
124 finishTest(); 124 finishTest();
125 } 125 }
126 126
127 return init; 127 return init;
128 } 128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698