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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-video.html

Issue 2276033002: Pass SkPaint instead of its alpha and mode in WebMediaPlayer::paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android should compile Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test drawImage(image) with canvas with different composite modes.</ti tle> 4 <title>Test drawImage(video) with canvas with different composite modes.</ti tle>
5 <script src="resources/canvas-composite-image-common.js"></script> 5 <script src="resources/canvas-composite-image-common.js"></script>
6 <style type="text/css"> 6 <style type="text/css">
7 body { margin: 5px; font-family: arial,verdana,helvetica; background: #fff ; } 7 body { margin: 5px; font-family: arial,verdana,helvetica; background: #fff ; }
8 canvas { border: 1px solid #999; } 8 canvas { border: 1px solid #999; }
9 div { margin: 10px; } 9 div { margin: 10px; }
10 #output h1 { font-size: medium; font-weight: normal; } 10 #output h1 { font-size: medium; font-weight: normal; }
11 #output h2 { font-size: small; font-weight: normal; } 11 #output h2 { font-size: small; font-weight: normal; }
12 #output div { font-size: small; margin: 0px; } 12 #output div { font-size: small; margin: 0px; }
13 #output .pass { color: green; } 13 #output .pass { color: green; }
14 #output .fail { color: rgb(255, 0, 0); } 14 #output .fail { color: rgb(255, 0, 0); }
(...skipping 28 matching lines...) Expand all
43 43
44 function playVideo() { 44 function playVideo() {
45 video.removeEventListener("playing", playVideo, true); 45 video.removeEventListener("playing", playVideo, true);
46 // We cannot read pixel after drawing a video because of SecurityError: 46 // We cannot read pixel after drawing a video because of SecurityError:
47 // The canvas has been tainted by cross-origin data. 47 // The canvas has been tainted by cross-origin data.
48 runTest("dumpAsTextWithPixelResults") 48 runTest("dumpAsTextWithPixelResults")
49 } 49 }
50 </script> 50 </script>
51 </body> 51 </body>
52 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698