| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // https://html.spec.whatwg.org/#imagebitmapoptions |
| |
| enum ImageOrientation { "none", "flipY" }; |
| enum PremultiplyAlpha { "none", "premultiply", "default" }; |
| enum ColorSpaceConversion { "none", "default", "srgb", "linear-rgb", "rec2020", "p3" }; |
| [RuntimeEnabled=ExperimentalCanvasFeatures] enum ResizeQuality { "pixelated", "low", "medium", "high" }; |
| dictionary ImageBitmapOptions { |
| ImageOrientation imageOrientation = "none"; |
| PremultiplyAlpha premultiplyAlpha = "default"; |
| ColorSpaceConversion colorSpaceConversion = "default"; |
| [RuntimeEnabled=ExperimentalCanvasFeatures, EnforceRange] unsigned long resizeWidth; |
| [RuntimeEnabled=ExperimentalCanvasFeatures, EnforceRange] unsigned long resizeHeight; |
| [RuntimeEnabled=ExperimentalCanvasFeatures] ResizeQuality resizeQuality = "low"; |
| }; |