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

Side by Side Diff: content/test/data/gpu/pixel_scissor.html

Issue 2466733003: Wait a few swaps to make Pixel_ScissorTestWithPreserveDrawingBuffer more robust. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/pixel_expectations.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>WebGL Scissor with context of preserveDrawingBuffer=true</title> 4 <title>WebGL Scissor with context of preserveDrawingBuffer=true</title>
5 <style type="text/css"> 5 <style type="text/css">
6 .nomargin { 6 .nomargin {
7 margin: 0px auto; 7 margin: 0px auto;
8 } 8 }
9 </style> 9 </style>
10 10
(...skipping 20 matching lines...) Expand all
31 } catch (e) {} 31 } catch (e) {}
32 return gl; 32 return gl;
33 } 33 }
34 34
35 function scissorAndClear() { 35 function scissorAndClear() {
36 gl.scissor(0, 0, 10, 10); 36 gl.scissor(0, 0, 10, 10);
37 gl.enable(gl.SCISSOR_TEST); 37 gl.enable(gl.SCISSOR_TEST);
38 gl.clearColor(0, 1, 0, 1); 38 gl.clearColor(0, 1, 0, 1);
39 gl.clear(gl.COLOR_BUFFER_BIT); 39 gl.clear(gl.COLOR_BUFFER_BIT);
40 40
41 domAutomationController.setAutomationId(1); 41 deferredAck();
42 domAutomationController.send("SUCCESS");
43 } 42 }
43
44 var swapsBeforeAck = 15;
45 function deferredAck()
46 {
47 if (swapsBeforeAck == 0) {
48 domAutomationController.setAutomationId(1);
49 domAutomationController.send("SUCCESS");
50 } else {
51 --swapsBeforeAck;
52 window.requestAnimationFrame(deferredAck);
53 }
54 }
55
44 </script> 56 </script>
45 </head> 57 </head>
46 <body onload="run()"> 58 <body onload="run()">
47 <div style="position:absolute; top:0px; left:0px"> 59 <div style="position:absolute; top:0px; left:0px">
48 <canvas id="c" width="200" height="200" class="nomargin"></canvas> 60 <canvas id="c" width="200" height="200" class="nomargin"></canvas>
49 </div> 61 </div>
50 </body> 62 </body>
51 </html> 63 </html>
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/pixel_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698