mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
Backed out changeset 85109095dd71 (bug 883364)
This commit is contained in:
parent
dabb5f270c
commit
f06be909d4
@ -18,12 +18,6 @@ function renderGL(gl) {
|
||||
gl.finish();
|
||||
}
|
||||
|
||||
function renderFailure(canvas) {
|
||||
// This will also trigger RAF for us.
|
||||
var context = canvas.getContext("2d");
|
||||
context.fillText('WebGL failed.', 64, 64);
|
||||
}
|
||||
|
||||
function runTest() {
|
||||
var canvas = document.getElementById("canvas");
|
||||
var gl = initGL(canvas);
|
||||
@ -31,7 +25,7 @@ function runTest() {
|
||||
if (gl)
|
||||
renderGL(gl);
|
||||
else
|
||||
renderFailure(canvas);
|
||||
document.write("Failed to get WebGL context.");
|
||||
|
||||
rAF(testComplete);
|
||||
}
|
||||
@ -39,7 +33,6 @@ function runTest() {
|
||||
function testComplete() {
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
|
@ -47,12 +47,6 @@ function renderGL(gl, value, alpha) {
|
||||
gl.finish();
|
||||
}
|
||||
|
||||
function renderFailure(canvas) {
|
||||
// This will also trigger RAF for us.
|
||||
var context = canvas.getContext("2d");
|
||||
context.fillText('WebGL failed.', 64, 64);
|
||||
}
|
||||
|
||||
function runTest() {
|
||||
var canvas = document.getElementById("canvas");
|
||||
var gl = initGL(canvas);
|
||||
@ -63,7 +57,7 @@ function runTest() {
|
||||
if (gl)
|
||||
renderGL(gl, value, alpha);
|
||||
else
|
||||
renderFailure(canvas);
|
||||
document.write("Failed to get WebGL context.");
|
||||
|
||||
rAF(testComplete);
|
||||
}
|
||||
|
@ -45,12 +45,6 @@ function renderGL(gl) {
|
||||
gl.finish();
|
||||
}
|
||||
|
||||
function renderFailure(canvas) {
|
||||
// This will also trigger RAF for us.
|
||||
var context = canvas.getContext("2d");
|
||||
context.fillText('WebGL failed.', 64, 64);
|
||||
}
|
||||
|
||||
function runTest() {
|
||||
var canvas = document.getElementById("canvas");
|
||||
var gl = initGL(canvas);
|
||||
@ -58,7 +52,7 @@ function runTest() {
|
||||
if (gl)
|
||||
renderGL(gl);
|
||||
else
|
||||
renderFailure(canvas);
|
||||
document.write("Failed to get WebGL context.");
|
||||
|
||||
rAF(testComplete);
|
||||
}
|
||||
|
@ -27,12 +27,6 @@ function renderGL(gl) {
|
||||
gl.finish();
|
||||
}
|
||||
|
||||
function renderFailure(canvas) {
|
||||
// This will also trigger RAF for us.
|
||||
var context = canvas.getContext("2d");
|
||||
context.fillText('WebGL failed.', 64, 64);
|
||||
}
|
||||
|
||||
function runTest() {
|
||||
var canvas = document.getElementById("canvas");
|
||||
var gl = initGL(canvas);
|
||||
@ -40,7 +34,7 @@ function runTest() {
|
||||
if (gl)
|
||||
renderGL(gl);
|
||||
else
|
||||
renderFailure(canvas);
|
||||
document.write("Failed to get WebGL context.");
|
||||
|
||||
rAF(testComplete);
|
||||
}
|
||||
|
@ -26,12 +26,6 @@ function renderGL(gl) {
|
||||
gl.finish();
|
||||
}
|
||||
|
||||
function renderFailure(canvas) {
|
||||
// This will also trigger RAF for us.
|
||||
var context = canvas.getContext("2d");
|
||||
context.fillText('WebGL failed.', 64, 64);
|
||||
}
|
||||
|
||||
function runTest() {
|
||||
var canvas = document.getElementById("canvas");
|
||||
var gl = initGL(canvas);
|
||||
@ -39,7 +33,7 @@ function runTest() {
|
||||
if (gl)
|
||||
renderGL(gl);
|
||||
else
|
||||
renderFailure(canvas);
|
||||
document.write("Failed to get WebGL context.");
|
||||
|
||||
rAF(testComplete);
|
||||
}
|
||||
|
@ -26,12 +26,6 @@ function renderGL(gl) {
|
||||
gl.finish();
|
||||
}
|
||||
|
||||
function renderFailure(canvas) {
|
||||
// This will also trigger RAF for us.
|
||||
var context = canvas.getContext("2d");
|
||||
context.fillText('WebGL failed.', 64, 64);
|
||||
}
|
||||
|
||||
function runTest() {
|
||||
var canvas = document.getElementById("canvas");
|
||||
var gl = initGL(canvas);
|
||||
@ -39,7 +33,7 @@ function runTest() {
|
||||
if (gl)
|
||||
renderGL(gl);
|
||||
else
|
||||
renderFailure(canvas);
|
||||
document.write("Failed to get WebGL context.");
|
||||
|
||||
rAF(testComplete);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user