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

Unified Diff: content/test/data/media/getusermedia-depth-capture.html

Issue 2565703002: Check EXT_color_buffer_float extension is available (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/getusermedia-depth-capture.html
diff --git a/content/test/data/media/getusermedia-depth-capture.html b/content/test/data/media/getusermedia-depth-capture.html
index 0dc5953c89482a28530627ed5948a760c1bbfef4..1ffde99f9469d3932fd732ebd54f1452c43a3f84 100644
--- a/content/test/data/media/getusermedia-depth-capture.html
+++ b/content/test/data/media/getusermedia-depth-capture.html
@@ -144,9 +144,9 @@
canvas.width = 96;
canvas.height = 96;
var gl = canvas.getContext('webgl');
- if(!gl)
+ if (!gl)
return error({name:"WebGL is not available."});
- if(!gl.getExtension("OES_texture_float"))
+ if (!gl.getExtension("OES_texture_float"))
return error({name:"OES_texture_float extension is not available."});
return testVideoToTexture(gl, video, gl.RGBA, gl.RGBA, gl.FLOAT,
readAndVerifyRGBA32F, success, error);
@@ -158,7 +158,7 @@
canvas.width = 96;
canvas.height = 96;
var gl = canvas.getContext('webgl');
- if(!gl)
+ if (!gl)
return error({name:"WebGL is not available."});
return testVideoToTexture(gl, video, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE,
readAndVerifyRGBA8, success, error);
@@ -170,9 +170,10 @@
canvas.width = 96;
canvas.height = 96;
var gl = canvas.getContext('webgl2');
- if(!gl)
+ if (!gl)
return error({name:"WebGL2 is not available."});
- var color_buffer_float_ext = gl.getExtension('EXT_color_buffer_float');
+ if (!gl.getExtension('EXT_color_buffer_float'))
+ return error({name:"EXT_color_buffer_float extension is not available."});
return testVideoToTexture(gl, video, gl.R32F, gl.RED, gl.FLOAT,
readAndVerifyR32F, success, error);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698