Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 CanvasColorSpace { "none", "default", "srgb", "linear-rgb" }; | 9 enum CanvasColorSpace { "none", "default", "srgb", "linear-rgb" }; |
| 10 [RuntimeEnabled=ExperimentalCanvasFeatures] enum ResizeQuality { "pixelated", "l ow", "medium", "high" }; | 10 [RuntimeEnabled=ExperimentalCanvasFeatures] enum ResizeQuality { "pixelated", "l ow", "medium", "high" }; |
| 11 dictionary ImageBitmapOptions { | 11 dictionary ImageBitmapOptions { |
| 12 ImageOrientation imageOrientation = "none"; | 12 ImageOrientation imageOrientation = "none"; |
| 13 PremultiplyAlpha premultiplyAlpha = "default"; | 13 PremultiplyAlpha premultiplyAlpha = "default"; |
| 14 CanvasColorSpace colorSpaceConversion = "default"; | 14 CanvasColorSpace colorSpaceConversion = "default"; |
| 15 [RuntimeEnabled=ExperimentalCanvasFeatures, EnforceRange] unsigned long? res izeWidth; | 15 [RuntimeEnabled=ExperimentalCanvasFeatures, EnforceRange] unsigned long resi zeWidth; |
|
foolip
2016/12/13 22:43:24
Let's take a look at the change in the generated c
lunalu1
2016/12/14 11:04:24
Done.
| |
| 16 [RuntimeEnabled=ExperimentalCanvasFeatures, EnforceRange] unsigned long? res izeHeight; | 16 [RuntimeEnabled=ExperimentalCanvasFeatures, EnforceRange] unsigned long resi zeHeight; |
| 17 [RuntimeEnabled=ExperimentalCanvasFeatures] ResizeQuality resizeQuality = "l ow"; | 17 [RuntimeEnabled=ExperimentalCanvasFeatures] ResizeQuality resizeQuality = "l ow"; |
| 18 }; | 18 }; |
| OLD | NEW |