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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-video-shadow.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-video-shadow.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-video.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-video-shadow.html
similarity index 90%
copy from third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-video.html
copy to third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-video-shadow.html
index 6ec027cf7fa3f2b1b9e8d4c0dcc8610a0f2468bd..04b3a1753d9abb72746c9a17619d8207520db802 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-video.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-video-shadow.html
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>Test drawImage(image) with canvas with different composite modes.</title>
+ <title>Test drawImage(video) with canvas with different composite modes.</title>
<script src="resources/canvas-composite-image-common.js"></script>
<style type="text/css">
body { margin: 5px; font-family: arial,verdana,helvetica; background: #fff; }
@@ -29,6 +29,10 @@
<script type="application/x-javascript">
function drawImage(context, compositeIndex, alpha) {
context.globalCompositeOperation = compositeTypes[compositeIndex];
+ context.shadowOffsetX = -2;
+ context.shadowOffsetY = 2;
+ context.shadowBlur = 8;
+ context.shadowColor = "purple";
if (alpha)
context.globalAlpha = 0.5;
var videoElement = document.getElementById('video');

Powered by Google App Engine
This is Rietveld 408576698