chromium/third_party/skia/src/core/SkImageInfoPriv.h

/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkImageInfoPriv_DEFINED
#define SkImageInfoPriv_DEFINED

#include "include/core/SkColor.h"
#include "include/core/SkColorType.h"
#include "include/core/SkImageInfo.h"

static inline uint32_t SkColorTypeChannelFlags(SkColorType ct) {}

static inline bool SkColorTypeIsAlphaOnly(SkColorType ct) {}

static inline bool SkAlphaTypeIsValid(unsigned value) {}

static int SkColorTypeShiftPerPixel(SkColorType ct) {}

static inline size_t SkColorTypeMinRowBytes(SkColorType ct, int width) {}

static inline bool SkColorTypeIsValid(unsigned value) {}

static inline size_t SkColorTypeComputeOffset(SkColorType ct, int x, int y, size_t rowBytes) {}

static inline bool SkColorTypeIsNormalized(SkColorType ct) {}

static inline int SkColorTypeMaxBitsPerChannel(SkColorType ct) {}

/**
 *  Returns true if |info| contains a valid colorType and alphaType.
 */
static inline bool SkColorInfoIsValid(const SkColorInfo& info) {}

/**
 *  Returns true if |info| contains a valid combination of width, height and colorInfo.
 */
static inline bool SkImageInfoIsValid(const SkImageInfo& info) {}

/**
 *  Returns true if Skia has defined a pixel conversion from the |src| to the |dst|.
 *  Returns false otherwise.
 */
static inline bool SkImageInfoValidConversion(const SkImageInfo& dst, const SkImageInfo& src) {}
#endif  // SkImageInfoPriv_DEFINED