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

Unified Diff: tools/perf/page_sets/tough_canvas_cases/rendering_throughput/bouncing_svg_images.html

Issue 2047773002: Added telemetry pages for the canvas element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some formatting Created 4 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 side-by-side diff with in-line comments
Download patch
Index: tools/perf/page_sets/tough_canvas_cases/rendering_throughput/bouncing_svg_images.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/bouncing_svg_images.html
similarity index 53%
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/bouncing_svg_images.html
index e2598d2697ede34fedad1019fa045a50ee0077de..d455bce1b775ee1e1f6c3bb90e4551bc3276dae9 100644
--- a/tools/perf/page_sets/tough_canvas_cases/rendering_throughput/canvas_arcs.html
+++ b/tools/perf/page_sets/tough_canvas_cases/rendering_throughput/bouncing_svg_images.html
@@ -1,12 +1,13 @@
<!DOCTYPE html>
<html>
<head></head>
-
<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="bouncing_svg_images.js"></script>
+<img src="images/Chromium_11_Logo.svg" style="display: none;" id="bouncing_image"/>
<script type="text/javascript">
window.onload = init;
@@ -18,21 +19,18 @@ 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_lines = 300;
+ stage_bouncing_svg_images.init(num_lines, 800, 600);
+ stage_bouncing_svg_images.draw(context);
bench.run(draw);
}
function draw() {
context.clearRect(0, 0, 800, 600);
- arcs.draw(context);
+ stage_bouncing_svg_images.draw(context);
};
</script>
-
</body>
-
</html>

Powered by Google App Engine
This is Rietveld 408576698