| 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() {
|
|
|