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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/tools/bench.js

Issue 2903053002: Removing canvas rendering mode switching feature (Closed)
Patch Set: fix test failure Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/canvas2d/tools/bench.js
diff --git a/third_party/WebKit/Source/modules/canvas2d/tools/bench.js b/third_party/WebKit/Source/modules/canvas2d/tools/bench.js
deleted file mode 100644
index 82750f731a3f5e5e161dc16a574d2dc8ee6c2a0b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/canvas2d/tools/bench.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2016 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 bench = (function() {
- var rafFunc;
- var drawFunc;
-
- function tick() {
- drawFunc();
- rafFunc(tick);
- };
-
- function startAnimation() {
- rafFunc = window.requestAnimationFrame ||
- window.webkitRequestAnimationFrame ||
- window.mozRequestAnimationFrame ||
- window.oRequestAnimationFrame ||
- window.msRequestAnimationFrame;
- rafFunc(tick);
- };
-
- var bench = {};
- bench.run = function(df) {
- drawFunc = df;
- startAnimation();
- };
- return bench;
-})();
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/tools/README.md ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698