зеркало из https://github.com/mozilla/gecko-dev.git
Bug 634532 - Add some logging to debug random oranges r=dougt, a=input-is-good
This commit is contained in:
Родитель
2179d8e77c
Коммит
a35a90a295
|
@ -22,6 +22,7 @@ function init()
|
||||||
}
|
}
|
||||||
|
|
||||||
description('Verify texImage2D and texSubImage2D code paths taking Video Elements');
|
description('Verify texImage2D and texSubImage2D code paths taking Video Elements');
|
||||||
|
dump('Verify texImage2D and texSubImage2D code paths taking Video Elements\n');
|
||||||
|
|
||||||
var canvas = document.getElementById("example");
|
var canvas = document.getElementById("example");
|
||||||
gl = wtu.create3DContext(canvas);
|
gl = wtu.create3DContext(canvas);
|
||||||
|
@ -48,6 +49,8 @@ function runOneIteration(videoElement, useTexSubImage2D, flipY, topColor, bottom
|
||||||
{
|
{
|
||||||
debug('Testing ' + (useTexSubImage2D ? 'texSubImage2D' : 'texImage2D') +
|
debug('Testing ' + (useTexSubImage2D ? 'texSubImage2D' : 'texImage2D') +
|
||||||
' with flipY=' + flipY);
|
' with flipY=' + flipY);
|
||||||
|
dump('Testing ' + (useTexSubImage2D ? 'texSubImage2D' : 'texImage2D') +
|
||||||
|
' with flipY=' + flipY + '\n');
|
||||||
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
|
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
|
||||||
// Disable any writes to the alpha channel
|
// Disable any writes to the alpha channel
|
||||||
gl.colorMask(1, 1, 1, 0);
|
gl.colorMask(1, 1, 1, 0);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче