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

Side by Side Diff: PerformanceTests/Canvas/upload-webgl-to-texture.html

Issue 1142603002: Fix blink_perf.canvas failure on chromium.perf (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « PerformanceTests/Canvas/upload-video-to-texture.html ('k') | no next file » | 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 <body> 3 <body>
4 <script src="../resources/runner.js"></script> 4 <script src="../resources/runner.js"></script>
5 <script src="resources/canvas_runner.js"></script> 5 <script src="resources/canvas_runner.js"></script>
6 <script> 6 <script>
7 7
8 var sourceCanvas3D = document.createElement('canvas'); 8 var sourceCanvas3D = document.createElement('canvas');
9 var sourceCtx = sourceCanvas3D.getContext('experimental-webgl'); 9 var sourceCtx = sourceCanvas3D.getContext('webgl');
10 var destCanvas3D = document.createElement('canvas'); 10 var destCanvas3D = document.createElement('canvas');
11 var destCtx = destCanvas3D.getContext('experimental-webgl'); 11 var destCtx = destCanvas3D.getContext('webgl');
12 if (!sourceCtx || !destCtx) 12 if (!sourceCtx || !destCtx)
13 CanvasRunner.logFatalError("\nWebGL is not supported or enabled on this plat form!\n"); 13 CanvasRunner.logFatalError("\nWebGL is not supported or enabled on this plat form!\n");
14 var tex = null; 14 var tex = null;
15 15
16 function setSize(width, height) { 16 function setSize(width, height) {
17 sourceCanvas3D.width = width; 17 sourceCanvas3D.width = width;
18 sourceCanvas3D.height = height; 18 sourceCanvas3D.height = height;
19 destCanvas3D.width = width; 19 destCanvas3D.width = width;
20 destCanvas3D.height = height; 20 destCanvas3D.height = height;
21 } 21 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 description: "This benchmark checks the speed on uploading WebGL(1024x10 24) to WebGL Texture(1024x1024).", 57 description: "This benchmark checks the speed on uploading WebGL(1024x10 24) to WebGL Texture(1024x1024).",
58 preRun: preRun, 58 preRun: preRun,
59 doRun: doRun, 59 doRun: doRun,
60 ensureComplete: ensureComplete, 60 ensureComplete: ensureComplete,
61 postRun: postRun}); 61 postRun: postRun});
62 } 62 }
63 63
64 </script> 64 </script>
65 </body> 65 </body>
66 </html> 66 </html>
OLDNEW
« no previous file with comments | « PerformanceTests/Canvas/upload-video-to-texture.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698