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

Side by Side Diff: tools/perf/page_sets/tough_canvas_cases/rendering_throughput/canvas_arcs.html

Issue 1995163002: Test page for rendering throughput for canvas arcs (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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head></head>
4
5 <body>
6 <canvas id="canvas" width="800" height="600">
7 <script type="text/javascript" src="bench.js"></script>
8 <script type="text/javascript" src="canvas_arcs.js"></script>
9
10
11 <script type="text/javascript">
12 window.onload = init;
13
14 var canvas;
15 var context;
16
17 function init() {
18 canvas = document.getElementById('canvas');
19 context = canvas.getContext('2d');
20
21 num_arcs = 1000;
22 arc_speed = 2;
23 arcs.init(num_arcs, arc_speed, 800, 600);
24 arcs.draw(context);
25
26 bench.run(draw);
27 }
28
29 function draw() {
30 context.clearRect(0, 0, 800, 600);
31 arcs.draw(context);
32 };
33
34 </script>
35
36 </body>
37
38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698