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

Side by Side Diff: LayoutTests/fast/canvas/webgl/resources/tex-image-and-sub-image-2d-with-image-data.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, prologue) { 1 function generateTest(pixelFormat, pixelType, 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 imageData = null; 6 var imageData = null;
7 7
8 var init = function() 8 var init = function()
9 { 9 {
10 if (window.initNonKhronosFramework) { 10 if (window.initNonKhronosFramework) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 redPremultiplyAlpha, greenPremultiplyAlpha); 105 redPremultiplyAlpha, greenPremultiplyAlpha);
106 runOneIteration(true, false, true, 106 runOneIteration(true, false, true,
107 greenPremultiplyAlpha, redPremultiplyAlpha); 107 greenPremultiplyAlpha, redPremultiplyAlpha);
108 108
109 glErrorShouldBe(gl, gl.NO_ERROR, "should be no errors"); 109 glErrorShouldBe(gl, gl.NO_ERROR, "should be no errors");
110 finishTest(); 110 finishTest();
111 } 111 }
112 112
113 return init; 113 return init;
114 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698