blob: cedb100c07d1d8ba0c7e0188177ee5653089c4c1 [file] [log] [blame]
// Copyright 2015 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.
module skia.mojom;
// Mirror of SkColorType.
enum ColorType {
UNKNOWN,
ALPHA_8,
RGB_565,
ARGB_4444,
RGBA_8888,
BGRA_8888,
INDEX_8,
GRAY_8,
};
// Mirror of SkAlphaType.
enum AlphaType {
UNKNOWN,
ALPHA_TYPE_OPAQUE,
PREMUL,
UNPREMUL,
};
// Capture of the (simple) gamma of SkColorSpace. Need to eventually
// serialize the actual colorspace object.
enum ColorProfileType {
LINEAR,
SRGB,
};
struct ImageInfo {
ColorType color_type;
AlphaType alpha_type;
ColorProfileType profile_type;
uint32 width;
uint32 height;
};