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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options.html

Issue 1609763002: Implement ImageBitmap options premultiplyAlpha (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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-createImageBitmap-drawImage-video-with-options.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options.html
similarity index 80%
copy from third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video.html
copy to third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options.html
index 92beba443a4b64180bc74165badff5c67d8f7e96..0b5121aa75fa92dd72e5d9d34b00e1d627031038 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options.html
@@ -57,15 +57,15 @@ video.src = "../../compositing/resources/video.ogv";
function videoLoaded() {
var imageBitmaps = {};
- var p1 = createImageBitmap(video).then(function (image) { imageBitmaps.noCrop = image });
- var p2 = createImageBitmap(video, 0, 0, 100, 100).then(function (image) { imageBitmaps.crop = image });
- var p3 = createImageBitmap(video, 50, 50, 100, 100).then(function (image) { imageBitmaps.cropRight = image });
- var p4 = createImageBitmap(video, 100, 100, 100, 100).then(function (image) { imageBitmaps.cropCenter = image });
- var p5 = createImageBitmap(video, -100, -100, 600, 600).then(function (image) { imageBitmaps.overCrop = image });
- var p6 = createImageBitmap(video, 100, 100, 500, 500).then(function (image) { imageBitmaps.overCropRight = image });
- var p7 = createImageBitmap(video, 100, 100, -100, -100).then(function (image) { imageBitmaps.negativeCrop = image });
- var p8 = createImageBitmap(video, -300, -300, 300, 300).then(function (image) { imageBitmaps.empty = image });
- var p9 = createImageBitmap(video, 400, 300, 300, 300).then(function (image) { imageBitmaps.emptyTwo = image });
+ var p1 = createImageBitmap(video, {'premultiplyAlpha' : false}).then(function (image) { imageBitmaps.noCrop = image });
+ var p2 = createImageBitmap(video, 0, 0, 100, 100, {'premultiplyAlpha' : false}).then(function (image) { imageBitmaps.crop = image });
+ var p3 = createImageBitmap(video, 50, 50, 100, 100, {'premultiplyAlpha' : false}).then(function (image) { imageBitmaps.cropRight = image });
+ var p4 = createImageBitmap(video, 100, 100, 100, 100, {'premultiplyAlpha' : false}).then(function (image) { imageBitmaps.cropCenter = image });
+ var p5 = createImageBitmap(video, -100, -100, 600, 600, {'premultiplyAlpha' : false}).then(function (image) { imageBitmaps.overCrop = image });
+ var p6 = createImageBitmap(video, 100, 100, 500, 500, {'premultiplyAlpha' : false}).then(function (image) { imageBitmaps.overCropRight = image });
+ var p7 = createImageBitmap(video, 100, 100, -100, -100, {'premultiplyAlpha' : false}).then(function (image) { imageBitmaps.negativeCrop = image });
+ var p8 = createImageBitmap(video, -300, -300, 300, 300, {'premultiplyAlpha' : false}).then(function (image) { imageBitmaps.empty = image });
+ var p9 = createImageBitmap(video, 400, 300, 300, 300, {'premultiplyAlpha' : false}).then(function (image) { imageBitmaps.emptyTwo = image });
Promise.all([p1, p2, p3, p4, p5, p6, p7, p8, p9]).then(function() {
checkNoCrop(imageBitmaps.noCrop);

Powered by Google App Engine
This is Rietveld 408576698