| Index: tools/perf/page_sets/tough_canvas_cases/rendering_throughput/stroke_shapes.html
|
| diff --git a/tools/perf/page_sets/tough_canvas_cases/rendering_throughput/canvas_arcs.html b/tools/perf/page_sets/tough_canvas_cases/rendering_throughput/stroke_shapes.html
|
| similarity index 60%
|
| copy from tools/perf/page_sets/tough_canvas_cases/rendering_throughput/canvas_arcs.html
|
| copy to tools/perf/page_sets/tough_canvas_cases/rendering_throughput/stroke_shapes.html
|
| index e2598d2697ede34fedad1019fa045a50ee0077de..bada4fa2c55fc391e2f1e2285ea959d601171522 100644
|
| --- a/tools/perf/page_sets/tough_canvas_cases/rendering_throughput/canvas_arcs.html
|
| +++ b/tools/perf/page_sets/tough_canvas_cases/rendering_throughput/stroke_shapes.html
|
| @@ -5,8 +5,8 @@
|
| <body>
|
| <canvas id="canvas" width="800" height="600">
|
| <script type="text/javascript" src="bench.js"></script>
|
| -<script type="text/javascript" src="canvas_arcs.js"></script>
|
| -
|
| +<script type="text/javascript" src="canvas_tough_cases_lib.js"></script>
|
| +<script type="text/javascript" src="stroke_shapes.js"></script>
|
|
|
| <script type="text/javascript">
|
| window.onload = init;
|
| @@ -18,17 +18,16 @@ function init() {
|
| canvas = document.getElementById('canvas');
|
| context = canvas.getContext('2d');
|
|
|
| - num_arcs = 1000;
|
| - arc_speed = 2;
|
| - arcs.init(num_arcs, arc_speed, 800, 600);
|
| - arcs.draw(context);
|
| + num_shapes = 1000;
|
| + stage_stroke_shapes.init(num_shapes, 800, 600);
|
| + stage_stroke_shapes.draw(context);
|
|
|
| bench.run(draw);
|
| }
|
|
|
| function draw() {
|
| context.clearRect(0, 0, 800, 600);
|
| - arcs.draw(context);
|
| + stage_stroke_shapes.draw(context);
|
| };
|
|
|
| </script>
|
|
|