зеркало из https://github.com/mozilla/gecko-dev.git
Backed out 3 changesets (bug 1087560) for bustage
Backed out changeset ecf4df03029a (bug 1087560) Backed out changeset 12a016a84d6d (bug 1087560) Backed out changeset 1b8b46616028 (bug 1087560)
This commit is contained in:
Родитель
c979af4660
Коммит
903b8fb20a
|
@ -1252,10 +1252,12 @@ WebGLContext::GetContextAttributes(Nullable<dom::WebGLContextAttributes> &retval
|
|||
|
||||
dom::WebGLContextAttributes& result = retval.SetValue();
|
||||
|
||||
result.mAlpha.Construct(mOptions.alpha);
|
||||
result.mDepth = mOptions.depth;
|
||||
result.mStencil = mOptions.stencil;
|
||||
result.mAntialias = mOptions.antialias;
|
||||
const PixelBufferFormat& format = gl->GetPixelFormat();
|
||||
|
||||
result.mAlpha.Construct(format.alpha > 0);
|
||||
result.mDepth = format.depth > 0;
|
||||
result.mStencil = format.stencil > 0;
|
||||
result.mAntialias = format.samples > 1;
|
||||
result.mPremultipliedAlpha = mOptions.premultipliedAlpha;
|
||||
result.mPreserveDrawingBuffer = mOptions.preserveDrawingBuffer;
|
||||
}
|
||||
|
|
|
@ -3,12 +3,12 @@ support-files =
|
|||
webgl-mochitest/driver-info.js
|
||||
webgl-mochitest/webgl-util.js
|
||||
|
||||
[webgl-mochitest/test_backbuffer_channels.html]
|
||||
[webgl-mochitest/test-backbuffer-channels.html]
|
||||
[webgl-mochitest/test-hidden-alpha.html]
|
||||
[webgl-mochitest/test_depth_readpixels.html]
|
||||
[webgl-mochitest/test_draw.html]
|
||||
[webgl-mochitest/test_fb_param.html]
|
||||
[webgl-mochitest/test_fb_param_crash.html]
|
||||
[webgl-mochitest/test_hidden_alpha.html]
|
||||
[webgl-mochitest/test_highp_fs.html]
|
||||
[webgl-mochitest/test_no_arr_points.html]
|
||||
[webgl-mochitest/test_noprog_draw.html]
|
||||
|
|
|
@ -48,11 +48,6 @@ function todo(val, text) {
|
|||
: 'Test <font color=\\'blue\\' >todo</font>: ';
|
||||
debug(status + text);
|
||||
}
|
||||
|
||||
SimpleTest = {
|
||||
waitForExplicitFinish: function() {},
|
||||
finish: function() {},
|
||||
};
|
||||
</script>
|
||||
<div id='mochi-to-testcase-output'></div>
|
||||
\n'''
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script>
|
||||
|
||||
function TestAttribs(attribs) {
|
||||
ok(true, 'Testing attribs: ' + JSON.stringify(attribs));
|
||||
debug('Testing attribs: ' + JSON.stringify(attribs));
|
||||
var canvas = document.createElement('canvas');
|
||||
var gl = canvas.getContext('experimental-webgl', attribs);
|
||||
ok(gl, 'No tested attribs should result in failure to create a context');
|
|
@ -77,7 +77,7 @@ function Test(gl, prog) {
|
|||
|
||||
//////////////////
|
||||
|
||||
ok(true, 'clear(R,G,B,0)');
|
||||
debug('clear(R,G,B,0)');
|
||||
|
||||
Reset(gl);
|
||||
|
||||
|
@ -102,7 +102,7 @@ function Test(gl, prog) {
|
|||
|
||||
//////////////////
|
||||
|
||||
ok(true, 'mask(R,G,B,0), clear(R,G,B,1)');
|
||||
debug('mask(R,G,B,0), clear(R,G,B,1)');
|
||||
|
||||
Reset(gl);
|
||||
|
||||
|
@ -129,7 +129,6 @@ function Test(gl, prog) {
|
|||
'toDataURL should be unchanged after blending.');
|
||||
|
||||
ok(true, 'Test complete.');
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
(function(){
|
||||
|
@ -147,7 +146,6 @@ function Test(gl, prog) {
|
|||
ok(prog, 'Program should link.');
|
||||
prog.aPosCoord = gl.getAttribLocation(prog, 'aPosCoord');
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
setTimeout(function(){ Test(gl, prog); }, 500);
|
||||
})();
|
||||
|
Загрузка…
Ссылка в новой задаче