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

Unified Diff: PerformanceTests/Canvas/upload-video-to-sub-texture.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
Index: PerformanceTests/Canvas/upload-video-to-sub-texture.html
diff --git a/PerformanceTests/Canvas/upload-video-to-sub-texture.html b/PerformanceTests/Canvas/upload-video-to-sub-texture.html
index 8d2d7441b45f33c2cde3fffe0b0cdd532b437379..2257aa82d7804b089638d2e24e6665da351e48c6 100644
--- a/PerformanceTests/Canvas/upload-video-to-sub-texture.html
+++ b/PerformanceTests/Canvas/upload-video-to-sub-texture.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>
@@ -22,7 +20,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() {

Powered by Google App Engine
This is Rietveld 408576698