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

Unified Diff: third_party/WebKit/LayoutTests/vr/resources/presentation-setup.js

Issue 2613103002: Added 8 new vr layout tests for various requestPresent conditions (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/vr/resources/fake-vr-displays.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/vr/resources/presentation-setup.js
diff --git a/third_party/WebKit/LayoutTests/vr/resources/presentation-setup.js b/third_party/WebKit/LayoutTests/vr/resources/presentation-setup.js
index 33c8269e56f08f2a0020cd21f8566ffec13777aa..b024216b6ecee14596be28fef2d2c04ab3fb1a3d 100644
--- a/third_party/WebKit/LayoutTests/vr/resources/presentation-setup.js
+++ b/third_party/WebKit/LayoutTests/vr/resources/presentation-setup.js
@@ -1,9 +1,14 @@
+var webgl2 = false;
var webglCanvas = document.getElementById("webgl-canvas");
+if (!webglCanvas) {
+ webglCanvas = document.getElementById("webgl2-canvas");
+ webgl2 = true;
+}
var glAttributes = {
alpha : false,
antialias : false,
};
-var gl = webglCanvas.getContext("webgl", glAttributes);
+var gl = webglCanvas.getContext(webgl2 ? "webgl2" : "webgl", glAttributes);
function runWithUserGesture(fn) {
function thunk() {
« no previous file with comments | « third_party/WebKit/LayoutTests/vr/resources/fake-vr-displays.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698