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

Unified Diff: content/test/data/gpu/pixel_webgl_noaa_noalpha.html

Issue 2023153002: Add more WebGL pixel tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: content/test/data/gpu/pixel_webgl_noaa_noalpha.html
diff --git a/content/test/data/gpu/pixel_webgl.html b/content/test/data/gpu/pixel_webgl_noaa_noalpha.html
similarity index 56%
rename from content/test/data/gpu/pixel_webgl.html
rename to content/test/data/gpu/pixel_webgl_noaa_noalpha.html
index b1f60f1f6b3594cc582da245a31158fc6fe7db72..ebcbd6fd859501a91f36357aae0ee91766e045ea 100644
--- a/content/test/data/gpu/pixel_webgl.html
+++ b/content/test/data/gpu/pixel_webgl_noaa_noalpha.html
@@ -18,35 +18,7 @@ that the baseline images are regenerated on the next run.
<script src="pixel_webgl_util.js"></script>
<script>
-var g_swapsBeforeAck = 15;
-var gl;
-
-function main()
-{
- var canvas = document.getElementById("c");
- gl = initGL(canvas);
- if (gl && setup(gl)) {
- drawSomeFrames();
- } else {
- domAutomationController.setAutomationId(1);
- domAutomationController.send("FAILURE");
- }
-}
-
-function drawSomeFrames()
-{
- if (g_swapsBeforeAck == 0) {
- domAutomationController.setAutomationId(1);
- domAutomationController.send("SUCCESS");
- } else {
- g_swapsBeforeAck--;
- drawTriangle(gl);
- window.webkitRequestAnimationFrame(drawSomeFrames);
- }
-}
-
-
-
+var main = makeMain(false, false);
</script>
</head>
<body onload="main()">

Powered by Google App Engine
This is Rietveld 408576698