| // Copyright 2018 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. |
| |
| |
| |
| /** @enum {number} */ |
| skia.mojom.ColorType = {}; |
| skia.mojom.ColorType.UNKNOWN; |
| skia.mojom.ColorType.ALPHA_8; |
| skia.mojom.ColorType.RGB_565; |
| skia.mojom.ColorType.ARGB_4444; |
| skia.mojom.ColorType.RGBA_8888; |
| skia.mojom.ColorType.BGRA_8888; |
| skia.mojom.ColorType.INDEX_8; |
| skia.mojom.ColorType.GRAY_8; |
| /** @enum {number} */ |
| skia.mojom.AlphaType = {}; |
| skia.mojom.AlphaType.UNKNOWN; |
| skia.mojom.AlphaType.ALPHA_TYPE_OPAQUE; |
| skia.mojom.AlphaType.PREMUL; |
| skia.mojom.AlphaType.UNPREMUL; |
| goog.provide('skia.mojom.ImageInfo'); |
| |
| skia.mojom.ImageInfo = class { |
| constructor() { |
| /** @type { !skia.mojom.ColorType } */ |
| this.colorType; |
| /** @type { !skia.mojom.AlphaType } */ |
| this.alphaType; |
| /** @type { !Array<number> } */ |
| this.serializedColorSpace; |
| /** @type { !number } */ |
| this.width; |
| /** @type { !number } */ |
| this.height; |
| } |
| }; |