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

Side by Side Diff: ManualTests/webgl-save-image-as.html

Issue 309933004: Fix imageSourceURL() for WebGL elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/html/HTMLCanvasElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <script>
4 var gl;
5 function runTest() {
6 if (window.testRunner)
7 testRunner.waitUntilDone();
8
9 gl = document.getElementById('canvas').getContext("webgl");
10 if (!gl) {
11 alert("No WebGL context found");
12 return;
13 }
14
15 gl.enable(gl.SCISSOR_TEST);
16 gl.clearColor(1, 0, 0, 1);
17 gl.clear(gl.COLOR_BUFFER_BIT);
18 }
19
20 </script>
21 <body onload='runTest()'>
22 Right click red square and save image. A red square image should be saved. <br >
23 <canvas id='canvas' width="100" height="100"></canvas>
24 </body>
25 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLCanvasElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698