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

Side by Side Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl

Issue 2035113002: Implement ImageBitmapOptions resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 5 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://html.spec.whatwg.org/#imagebitmapoptions 5 // https://html.spec.whatwg.org/#imagebitmapoptions
6 6
7 enum ImageOrientation { "none", "flipY" }; 7 enum ImageOrientation { "none", "flipY" };
8 enum PremultiplyAlpha { "none", "premultiply", "default" }; 8 enum PremultiplyAlpha { "none", "premultiply", "default" };
9 enum ColorSpaceConversion { "none", "default" }; 9 enum ColorSpaceConversion { "none", "default" };
10 [RuntimeEnabled=ExperimentalCanvasFeatures] enum ResizeQuality { "pixelated", "l ow", "medium", "high" };
10 dictionary ImageBitmapOptions { 11 dictionary ImageBitmapOptions {
11 ImageOrientation imageOrientation = "none"; 12 ImageOrientation imageOrientation = "none";
12 PremultiplyAlpha premultiplyAlpha = "default"; 13 PremultiplyAlpha premultiplyAlpha = "default";
13 ColorSpaceConversion colorSpaceConversion = "default"; 14 ColorSpaceConversion colorSpaceConversion = "default";
15 [RuntimeEnabled=ExperimentalCanvasFeatures, EnforceRange] unsigned long? res izeWidth;
16 [RuntimeEnabled=ExperimentalCanvasFeatures, EnforceRange] unsigned long? res izeHeight;
17 [RuntimeEnabled=ExperimentalCanvasFeatures] ResizeQuality resizeQuality = "l ow";
14 }; 18 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698