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

Unified Diff: tools/perf/page_sets/tough_video_cases/video.html

Issue 2848723003: Remove support for canvas element in tough_video_cases. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « tools/perf/page_sets/tough_video_cases.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/tough_video_cases/video.html
diff --git a/tools/perf/page_sets/tough_video_cases/video.html b/tools/perf/page_sets/tough_video_cases/video.html
index 9bdf2b3d6dd4b2a1c59d9d45e781a912fcc9aa27..6a2113b45174c336e6be42a818f355014f5c3726 100644
--- a/tools/perf/page_sets/tough_video_cases/video.html
+++ b/tools/perf/page_sets/tough_video_cases/video.html
@@ -45,11 +45,6 @@
return mediaSRC;
}
- function canvas2dAnimation() {
- canvasContext.drawImage(testElement, 0, 0, canvasElement.width, canvasElement.height);
- window.requestAnimationFrame(canvas2dAnimation);
- }
-
qsParams = getQueryStrings();
var type = qsParams['type'] || 'video';
var testElement = document.createElement(type);
@@ -60,14 +55,6 @@
if (qsParams['id'])
testElement.id = qsParams['id'];
testElement.src = getMediaSRC();
- if (qsParams['canvas'] && type == 'video') {
- canvasElement = document.createElement('canvas');
- canvasElement.width = 800;
- canvasElement.height = 450;
- document.body.appendChild(canvasElement);
- canvasContext = canvasElement.getContext('2d');
- window.requestAnimationFrame(canvas2dAnimation);
- }
document.body.appendChild(testElement);
</script>
</html>
« no previous file with comments | « tools/perf/page_sets/tough_video_cases.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698