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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/yuv-video-on-accelerated-canvas.html

Issue 1431783002: Adding a layout test for drawing a live video to a canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo fix Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/canvas/canvas-pattern-video.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Ensure correct behavior of drawImage video elements on both software ca nvas and accelerated canvas. crbug.com/424591</title> 3 <title>Ensure correct behavior of drawImage video elements on both software ca nvas and accelerated canvas. crbug.com/424591</title>
4 <!-- 4 <!--
5 This test is made to check a video bug rather than a canvas bug. When we use both sw 5 This test is made to check a video bug rather than a canvas bug. When we use both sw
6 canvas and hw canvas, the video bug appears. 6 canvas and hw canvas, the video bug appears.
7 The video impl has its own cache mechanism to cache SkBitmap after convertin g 7 The video impl has its own cache mechanism to cache SkBitmap after convertin g
8 video frame to SkBitmap. 8 video frame to SkBitmap.
9 When hw canvas draws video, video caches SkBitmap backed on GrTexture. When sw 9 When hw canvas draws video, video caches SkBitmap backed on GrTexture. When sw
10 canvas draws video, video caches SkBitmap backed on system memory. 10 canvas draws video, video caches SkBitmap backed on system memory.
11 The problem appears when we draws the video on both hw canvas and sw canvas. 11 The problem appears when we draws the video on both hw canvas and sw canvas.
12 When hw canvas draws, the video caches GrTexture based SkBitmap. and then wh en 12 When hw canvas draws, the video caches GrTexture based SkBitmap. and then wh en
13 sw canvas draws, the video draws GrTexture based SkBitmap on sw canvas. 13 sw canvas draws, the video draws GrTexture based SkBitmap on sw canvas.
14 Otherwise, if sw canvas draws prior, the video draws system memory SkBitmap on 14 Otherwise, if sw canvas draws prior, the video draws system memory SkBitmap on
15 hw canvas. 15 hw canvas.
16 'loop' attribute makes video be played hundreds times per second, which reve als 16 'loop' attribute makes video be played hundreds times per second, which reve als
17 crbug.com/455235 17 crbug.com/455235
18 --> 18 -->
19 <style trpe="text/css"> 19 <style type="text/css">
20 video { 20 video {
21 display: none; 21 display: none;
22 } 22 }
23 </style> 23 </style>
24 </head> 24 </head>
25 <body> 25 <body>
26 <canvas id="hw-canvas" width=300 height=300></canvas> 26 <canvas id="hw-canvas" width=300 height=300></canvas>
27 <canvas id="sw-canvas" width=150 height=150></canvas> 27 <canvas id="sw-canvas" width=150 height=150></canvas>
28 <video id="video" loop> 28 <video id="video" loop>
29 <source src="resources/canvas_video.mp4" type='video/mp4' /> 29 <source src="resources/canvas_video.mp4" type='video/mp4' />
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 for (i = 0; i < 10; i++) { 63 for (i = 0; i < 10; i++) {
64 drawVideo(sw_ctx, sw_canvas); 64 drawVideo(sw_ctx, sw_canvas);
65 drawVideo(hw_ctx, hw_canvas); 65 drawVideo(hw_ctx, hw_canvas);
66 } 66 }
67 if (window.testRunner) 67 if (window.testRunner)
68 testRunner.notifyDone(); 68 testRunner.notifyDone();
69 } 69 }
70 </script> 70 </script>
71 </body> 71 </body>
72 </html> 72 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/canvas/canvas-pattern-video.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698