Lines Matching refs:SkTextureCompressor
19 static bool decompresses_a8(SkTextureCompressor::Format fmt) { in decompresses_a8()
21 case SkTextureCompressor::kLATC_Format: in decompresses_a8()
22 case SkTextureCompressor::kR11_EAC_Format: in decompresses_a8()
30 static bool compresses_a8(SkTextureCompressor::Format fmt) { in compresses_a8()
32 case SkTextureCompressor::kLATC_Format: in compresses_a8()
33 case SkTextureCompressor::kR11_EAC_Format: in compresses_a8()
34 case SkTextureCompressor::kASTC_12x12_Format: in compresses_a8()
61 for (int i = 0; i < SkTextureCompressor::kFormatCnt; ++i) { in DEF_TEST()
62 const SkTextureCompressor::Format fmt = static_cast<SkTextureCompressor::Format>(i); in DEF_TEST()
66 SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt)); in DEF_TEST()
90 for (int i = 0; i < SkTextureCompressor::kFormatCnt; ++i) { in DEF_TEST()
91 const SkTextureCompressor::Format fmt = static_cast<SkTextureCompressor::Format>(i); in DEF_TEST()
95 SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt)); in DEF_TEST()
147 for (int i = 0; i < SkTextureCompressor::kFormatCnt; ++i) { in DEF_TEST()
148 const SkTextureCompressor::Format fmt = static_cast<SkTextureCompressor::Format>(i); in DEF_TEST()
156 SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt)); in DEF_TEST()
163 SkTextureCompressor::DecompressBufferFromFormat( in DEF_TEST()
189 const SkTextureCompressor::Format kLATCFormat = SkTextureCompressor::kLATC_Format; in DEF_TEST()
199 SkTextureCompressor::GetBlockDimensions(kLATCFormat, &latcDimX, &latcDimY); in DEF_TEST()
204 SkTextureCompressor::GetCompressedDataSize(kLATCFormat, kWidth, kHeight); in DEF_TEST()
215 SkTextureCompressor::CompressBitmapToFormat(pixmap, kLATCFormat)); in DEF_TEST()