mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
41 lines
721 B
Plaintext
41 lines
721 B
Plaintext
|
// 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;
|
||
|
};
|