#ifndef SkCompressedDataUtils_DEFINED
#define SkCompressedDataUtils_DEFINED
#include "include/core/SkRefCnt.h"
#include "include/core/SkTextureCompressionType.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkTArray.h"
#include <cstddef>
class SkBitmap;
class SkData;
struct SkISize;
static constexpr bool SkTextureCompressionTypeIsOpaque(SkTextureCompressionType compression) { … }
size_t SkCompressedDataSize(SkTextureCompressionType, SkISize baseDimensions,
skia_private::TArray<size_t>* individualMipOffsets, bool mipmapped);
size_t SkCompressedBlockSize(SkTextureCompressionType type);
size_t SkCompressedFormatDataSize(SkTextureCompressionType compressionType,
SkISize dimensions, bool mipmapped);
bool SkDecompress(sk_sp<SkData> data,
SkISize dimensions,
SkTextureCompressionType compressionType,
SkBitmap* dst);
#endif