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

Unified Diff: PerformanceTests/Canvas/draw-video-to-hw-accelerated-canvas-2d.html

Issue 219023009: Fix timing out of perf test: Canvas/upload-canvas-2d-to-texture.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | « no previous file | PerformanceTests/Canvas/upload-video-to-sub-texture.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/Canvas/draw-video-to-hw-accelerated-canvas-2d.html
diff --git a/PerformanceTests/Canvas/draw-video-to-hw-accelerated-canvas-2d.html b/PerformanceTests/Canvas/draw-video-to-hw-accelerated-canvas-2d.html
index e83ffe210de91bd84526ba43cd7a903f8a6d50bd..8498c37960e114795a3fd77e46391fa2852261f3 100644
--- a/PerformanceTests/Canvas/draw-video-to-hw-accelerated-canvas-2d.html
+++ b/PerformanceTests/Canvas/draw-video-to-hw-accelerated-canvas-2d.html
@@ -1,9 +1,7 @@
<!DOCTYPE html>
<html>
<body>
-<video id="video" autoplay="true" loop>
- <source type="video/mp4">
-</video>
+<video id="video" loop></video>
<script src="../resources/runner.js"></script>
<script src="resources/canvas_runner.js"></script>
<script>
@@ -20,7 +18,10 @@ function addPlayCallback(videoElement) {
// This logic makes sure this perf test starts after playing the video.
videoElement.addEventListener("canplaythrough", startVideo, true);
videoElement.addEventListener("play", startPerfTest, true);
- videoElement.src = "../resources/720x576i-anamorphic.mov";
+ videoElement.addEventListener('error', function(ev) {
+ CanvasRunner.logFatalError("\nmp4 codec is not supported on this platform. Received error event:" + ev.target.error.code + "\n");
+ }, false);
+ videoElement.src = "../resources/bear-1280x720.mp4";
}
function startVideo() {
« no previous file with comments | « no previous file | PerformanceTests/Canvas/upload-video-to-sub-texture.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698