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

Unified Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl

Issue 1609763002: Implement ImageBitmap options premultiplyAlpha (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change to enum instead of boolean Created 4 years, 10 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/Source/core/imagebitmap/ImageBitmapOptions.idl
diff --git a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl
index f4dac6604128702fdfc74e2c4f5ec3825f20b8c8..d9792ba8495e73d4fed213b779a56fb6b7d577c8 100644
--- a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl
+++ b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl
@@ -3,7 +3,8 @@
// found in the LICENSE file.
enum ImageOrientation { "none", "flipY" };
+enum PremultiplyAlpha { "none", "default" };
dictionary ImageBitmapOptions {
Justin Novosad 2016/02/05 14:46:41 I think this interface should be hidden behind the
xidachen 2016/02/05 16:47:36 Acknowledged.
- boolean premuiltiplyAlpha;
+ PremultiplyAlpha premultiplyAlpha = "default";
ImageOrientation imageOrientation = "none";
};

Powered by Google App Engine
This is Rietveld 408576698