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

Unified Diff: chrome/test/data/perf/rendering/throughput/canvas2d_balls_common/bouncing_balls_draw_ball_as_filled_path.js

Issue 124393006: Remove throughput_tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove change to window_snapshot.h Created 6 years, 11 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: chrome/test/data/perf/rendering/throughput/canvas2d_balls_common/bouncing_balls_draw_ball_as_filled_path.js
diff --git a/chrome/test/data/perf/rendering/throughput/canvas2d_balls_common/bouncing_balls_draw_ball_as_filled_path.js b/chrome/test/data/perf/rendering/throughput/canvas2d_balls_common/bouncing_balls_draw_ball_as_filled_path.js
deleted file mode 100644
index 7eb267d04f8391de713b5605740defa82713a49f..0000000000000000000000000000000000000000
--- a/chrome/test/data/perf/rendering/throughput/canvas2d_balls_common/bouncing_balls_draw_ball_as_filled_path.js
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-var ballRadius;
-var ballGradient;
-var segmentCount = 20;
-
-function drawBallInit(diameter) {
- ballRadius = diameter / 2;
- ballGradient = canvasContext.createRadialGradient(0, 0, 0, 0, 0, ballRadius);
- ballGradient.addColorStop(0, "#4040FF");
- ballGradient.addColorStop(1, "#00FF40");
-}
-
-function drawBall(x, y, angle) {
- canvasContext.save();
- canvasContext.fillStyle = ballGradient;
- canvasContext.translate(x, y);
- canvasContext.rotate(angle);
- canvasContext.beginPath();
- canvasContext.moveTo(ballRadius, 0);
- for (var i = 1; i < segmentCount; ++i) {
- var angle = i * 2.0 * Math.PI / segmentCount;
- canvasContext.lineTo(ballRadius*Math.cos(angle),
- ballRadius*Math.sin(angle));
- }
- canvasContext.fill();
- canvasContext.closePath();
- canvasContext.restore();
-}

Powered by Google App Engine
This is Rietveld 408576698