Home
last modified time | relevance | path

Searched refs:CompressionType (Results 1 – 25 of 95) sorted by relevance

1234

/third_party/skia/src/gpu/mock/
DGrMockCaps.cpp38 SkImage::CompressionType compression = format.asMockCompressionType(); in computeFormatKey()
39 SkASSERT(compression == SkImage::CompressionType::kNone); in computeFormatKey()
50 SkImage::CompressionType::kNone)}, in getTestingCombinations()
52 SkImage::CompressionType::kNone)}, in getTestingCombinations()
54 SkImage::CompressionType::kNone)}, in getTestingCombinations()
56 SkImage::CompressionType::kNone)}, in getTestingCombinations()
58 SkImage::CompressionType::kNone)}, in getTestingCombinations()
60 SkImage::CompressionType::kNone)}, in getTestingCombinations()
62 SkImage::CompressionType::kNone)}, in getTestingCombinations()
64 SkImage::CompressionType::kNone)}, in getTestingCombinations()
[all …]
DGrMockCaps.h44 SkImage::CompressionType compression = format.asMockCompressionType(); in isFormatSRGB()
45 if (compression != SkImage::CompressionType::kNone) { in isFormatSRGB()
54 SkImage::CompressionType compression = format.asMockCompressionType(); in isFormatTexturable()
55 if (compression != SkImage::CompressionType::kNone) { in isFormatTexturable()
79 if (format.asMockCompressionType() != SkImage::CompressionType::kNone) { in isFormatRenderable()
90 SkImage::CompressionType compression = format.asMockCompressionType(); in getRenderTargetSampleCount()
91 if (compression != SkImage::CompressionType::kNone) { in getRenderTargetSampleCount()
111 SkImage::CompressionType compression = format.asMockCompressionType(); in maxRenderTargetSampleCount()
112 if (compression != SkImage::CompressionType::kNone) { in maxRenderTargetSampleCount()
129 GrBackendFormat getBackendFormatFromCompressionType(SkImage::CompressionType) const override { in getBackendFormatFromCompressionType() argument
[all …]
DGrMockGpu.cpp107 SkASSERT(format.asMockCompressionType() == SkImage::CompressionType::kNone); in onCreateTexture()
114 GrMockTextureInfo texInfo(ct, SkImage::CompressionType::kNone, NextInternalTextureID()); in onCreateTexture()
138 SkImage::CompressionType compression = format.asMockCompressionType(); in onCreateCompressedTexture()
139 SkASSERT(compression != SkImage::CompressionType::kNone); in onCreateCompressedTexture()
160 SkImage::CompressionType compression = texInfo.compressionType(); in onWrapBackendTexture()
161 if (compression != SkImage::CompressionType::kNone) { in onWrapBackendTexture()
184 SkASSERT(texInfo.compressionType() == SkImage::CompressionType::kNone); in onWrapRenderableBackendTexture()
226 SkImage::CompressionType compression = format.asMockCompressionType(); in onCreateBackendTexture()
227 if (compression != SkImage::CompressionType::kNone) { in onCreateBackendTexture()
236 GrMockTextureInfo info(colorType, SkImage::CompressionType::kNone, NextExternalTextureID()); in onCreateBackendTexture()
[all …]
DGrMockTypes.cpp13 return GrBackendFormat::MakeMock(fColorType, SkImage::CompressionType::kNone); in getBackendFormat()
DGrMockAttachment.h25 return GrBackendFormat::MakeMock(GrColorType::kUnknown, SkImage::CompressionType::kNone, in backendFormat()
/third_party/skia/src/gpu/
DGrBackendUtils.cpp32 SkImage::CompressionType GrBackendFormatToCompressionType(const GrBackendFormat& format) { in GrBackendFormatToCompressionType()
40 return SkImage::CompressionType::kETC2_RGB8_UNORM; in GrBackendFormatToCompressionType()
42 return SkImage::CompressionType::kBC1_RGB8_UNORM; in GrBackendFormatToCompressionType()
44 return SkImage::CompressionType::kBC1_RGBA8_UNORM; in GrBackendFormatToCompressionType()
46 return SkImage::CompressionType::kNone; in GrBackendFormatToCompressionType()
57 return SkImage::CompressionType::kETC2_RGB8_UNORM; in GrBackendFormatToCompressionType()
59 return SkImage::CompressionType::kBC1_RGB8_UNORM; in GrBackendFormatToCompressionType()
61 return SkImage::CompressionType::kBC1_RGBA8_UNORM; in GrBackendFormatToCompressionType()
63 return SkImage::CompressionType::kNone; in GrBackendFormatToCompressionType()
80 return SkImage::CompressionType::kBC1_RGBA8_UNORM; in GrBackendFormatToCompressionType()
[all …]
DGrDataUtils.h20 size_t GrNumBlocks(SkImage::CompressionType, SkISize baseDimensions);
23 size_t GrCompressedRowBytes(SkImage::CompressionType, int w);
28 SkISize GrCompressedDimensions(SkImage::CompressionType, SkISize baseDimensions);
36 void GrFillInCompressedData(SkImage::CompressionType, SkISize dimensions, GrMipmapped, char* dest,
DGrDataUtils.cpp161 size_t GrNumBlocks(SkImage::CompressionType type, SkISize baseDimensions) { in GrNumBlocks()
163 case SkImage::CompressionType::kNone: in GrNumBlocks()
165 case SkImage::CompressionType::kETC2_RGB8_UNORM: in GrNumBlocks()
166 case SkImage::CompressionType::kBC1_RGB8_UNORM: in GrNumBlocks()
167 case SkImage::CompressionType::kBC1_RGBA8_UNORM: { in GrNumBlocks()
177 size_t GrCompressedRowBytes(SkImage::CompressionType type, int width) { in GrCompressedRowBytes()
179 case SkImage::CompressionType::kNone: in GrCompressedRowBytes()
181 case SkImage::CompressionType::kETC2_RGB8_UNORM: in GrCompressedRowBytes()
182 case SkImage::CompressionType::kBC1_RGB8_UNORM: in GrCompressedRowBytes()
183 case SkImage::CompressionType::kBC1_RGBA8_UNORM: { in GrCompressedRowBytes()
[all …]
DGrSurface.cpp35 SkImage::CompressionType compressionType = GrBackendFormatToCompressionType(format); in ComputeSize()
36 if (compressionType != SkImage::CompressionType::kNone) { in ComputeSize()
DGrCaps.cpp415 SkImage::CompressionType compression = GrBackendFormatToCompressionType(format); in areColorTypeAndFormatCompatible()
416 if (compression != SkImage::CompressionType::kNone) { in areColorTypeAndFormatCompatible()
425 SkImage::CompressionType compression = GrBackendFormatToCompressionType(format); in getReadSwizzle()
426 if (compression != SkImage::CompressionType::kNone) { in getReadSwizzle()
439 return GrBackendFormatToCompressionType(format) != SkImage::CompressionType::kNone; in isFormatCompressed()
DGrGpu.cpp270 SkImage::CompressionType compressionType = GrBackendFormatToCompressionType(format); in createCompressedTexture()
271 if (compressionType == SkImage::CompressionType::kNone) { in createCompressedTexture()
806 SkImage::CompressionType compressionType, in CompressedDataIsCorrect()
869 SkImage::CompressionType compressionType = GrBackendFormatToCompressionType(format); in createCompressedBackendTexture()
870 if (compressionType == SkImage::CompressionType::kNone) { in createCompressedBackendTexture()
900 SkImage::CompressionType compressionType = GrBackendFormatToCompressionType(format); in updateCompressedBackendTexture()
901 if (compressionType == SkImage::CompressionType::kNone) { in updateCompressedBackendTexture()
DGrBackendUtils.h15 SkImage::CompressionType GrBackendFormatToCompressionType(const GrBackendFormat& format);
/third_party/skia/src/core/
DSkCompressedDataUtils.h19 static constexpr bool SkCompressionTypeIsOpaque(SkImage::CompressionType compression) { in SkCompressionTypeIsOpaque()
21 case SkImage::CompressionType::kNone: return true; in SkCompressionTypeIsOpaque()
22 case SkImage::CompressionType::kETC2_RGB8_UNORM: return true; in SkCompressionTypeIsOpaque()
23 case SkImage::CompressionType::kBC1_RGB8_UNORM: return true; in SkCompressionTypeIsOpaque()
24 case SkImage::CompressionType::kBC1_RGBA8_UNORM: return false; in SkCompressionTypeIsOpaque()
30 size_t SkCompressedDataSize(SkImage::CompressionType, SkISize baseDimensions,
32 size_t SkCompressedBlockSize(SkImage::CompressionType type);
37 size_t SkCompressedFormatDataSize(SkImage::CompressionType compressionType,
45 SkImage::CompressionType compressionType,
DSkCompressedDataUtils.cpp230 SkImage::CompressionType compressionType, in SkDecompress()
232 using Type = SkImage::CompressionType; in SkDecompress()
246 size_t SkCompressedDataSize(SkImage::CompressionType type, SkISize dimensions, in SkCompressedDataSize()
257 case SkImage::CompressionType::kNone: in SkCompressedDataSize()
259 case SkImage::CompressionType::kETC2_RGB8_UNORM: in SkCompressedDataSize()
260 case SkImage::CompressionType::kBC1_RGB8_UNORM: in SkCompressedDataSize()
261 case SkImage::CompressionType::kBC1_RGBA8_UNORM: { in SkCompressedDataSize()
282 size_t SkCompressedBlockSize(SkImage::CompressionType type) { in SkCompressedBlockSize()
284 case SkImage::CompressionType::kNone: in SkCompressedBlockSize()
286 case SkImage::CompressionType::kETC2_RGB8_UNORM: in SkCompressedBlockSize()
[all …]
/third_party/skia/include/gpu/mock/
DGrMockTypes.h19 , fCompressionType(SkImage::CompressionType::kNone) in GrMockTextureInfo()
23 SkImage::CompressionType compressionType, in GrMockTextureInfo()
29 if (fCompressionType != SkImage::CompressionType::kNone) { in GrMockTextureInfo()
42 SkImage::CompressionType compressionType() const { return fCompressionType; } in compressionType()
45 SkASSERT(fCompressionType == SkImage::CompressionType::kNone); in colorType()
53 SkImage::CompressionType fCompressionType;
88 SkImage::CompressionType fCompressionType = SkImage::CompressionType::kNone;
108 fCompressedOptions[(int)SkImage::CompressionType::kETC2_RGB8_UNORM].fTexturable = true; in GrMockOptions()
109 fCompressedOptions[(int)SkImage::CompressionType::kBC1_RGB8_UNORM].fTexturable = true; in GrMockOptions()
110 fCompressedOptions[(int)SkImage::CompressionType::kBC1_RGBA8_UNORM].fTexturable = true; in GrMockOptions()
/third_party/skia/tests/
DCompressedBackendAllocationTest.cpp41 SkImage::CompressionType compression = in create_image()
57 SkImage::CompressionType compressionType, in check_compressed_mipmaps()
114 SkImage::CompressionType compressionType, in check_readback()
147 SkImage::CompressionType compression, in test_compressed_color_init()
185 static std::unique_ptr<const char[]> make_compressed_data(SkImage::CompressionType compression, in make_compressed_data()
221 SkImage::CompressionType compression, in test_compressed_data_init()
284 SkImage::CompressionType fCompression; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
287 { SkImage::CompressionType::kETC2_RGB8_UNORM, SkColors::kRed }, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
288 { SkImage::CompressionType::kBC1_RGB8_UNORM, SkColors::kBlue }, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
289 { SkImage::CompressionType::kBC1_RGBA8_UNORM, SkColors::kTransparent }, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/include/private/
DGrMockTypesPriv.h16 , fCompressionType(SkImage::CompressionType::kNone) {} in GrMockTextureSpec()
22 SkImage::CompressionType fCompressionType = SkImage::CompressionType::kNone;
DGrTypesPriv.h1231 static constexpr SkColorType GrCompressionTypeToSkColorType(SkImage::CompressionType compression) { in GrCompressionTypeToSkColorType()
1233 case SkImage::CompressionType::kNone: return kUnknown_SkColorType; in GrCompressionTypeToSkColorType()
1234 case SkImage::CompressionType::kETC2_RGB8_UNORM: return kRGB_888x_SkColorType; in GrCompressionTypeToSkColorType()
1235 case SkImage::CompressionType::kBC1_RGB8_UNORM: return kRGB_888x_SkColorType; in GrCompressionTypeToSkColorType()
1236 case SkImage::CompressionType::kBC1_RGBA8_UNORM: return kRGBA_8888_SkColorType; in GrCompressionTypeToSkColorType()
1343 static constexpr const char* GrCompressionTypeToStr(SkImage::CompressionType compression) { in GrCompressionTypeToStr()
1345 case SkImage::CompressionType::kNone: return "kNone"; in GrCompressionTypeToStr()
1346 case SkImage::CompressionType::kETC2_RGB8_UNORM: return "kETC2_RGB8_UNORM"; in GrCompressionTypeToStr()
1347 case SkImage::CompressionType::kBC1_RGB8_UNORM: return "kBC1_RGB8_UNORM"; in GrCompressionTypeToStr()
1348 case SkImage::CompressionType::kBC1_RGBA8_UNORM: return "kBC1_RGBA8_UNORM"; in GrCompressionTypeToStr()
/third_party/skia/gm/
Dexoticformats.cpp29 SkImage::CompressionType fCompressionType;
95 imageInfo->fCompressionType = SkImage::CompressionType::kETC2_RGB8_UNORM; in load_ktx()
98 imageInfo->fCompressionType = SkImage::CompressionType::kBC1_RGB8_UNORM; in load_ktx()
101 imageInfo->fCompressionType = SkImage::CompressionType::kBC1_RGBA8_UNORM; in load_ktx()
280 imageInfo->fCompressionType = SkImage::CompressionType::kBC1_RGB8_UNORM; in load_dds()
351 SkASSERT(info.fCompressionType == SkImage::CompressionType::kETC2_RGB8_UNORM); in loadImages()
366 SkASSERT(info.fCompressionType == SkImage::CompressionType::kBC1_RGB8_UNORM); in loadImages()
Dbc1_transparency.cpp82 size_t totalSize = SkCompressedDataSize(SkImage::CompressionType::kBC1_RGB8_UNORM, dim, in make_compressed_data()
105 SkImage::CompressionType compression) { in data_to_img()
188 fRGBImage = data_to_img(dContext, bc1Data, SkImage::CompressionType::kBC1_RGB8_UNORM); in onGpuSetup()
190 SkImage::CompressionType::kBC1_RGBA8_UNORM); in onGpuSetup()
Dcompressed_textures.cpp105 SkImage::CompressionType compression) { in make_compressed_image()
131 if (compression == SkImage::CompressionType::kETC2_RGB8_UNORM) { in make_compressed_image()
232 SkImage::CompressionType::kETC2_RGB8_UNORM); in onGpuSetup()
236 SkImage::CompressionType::kBC1_RGB8_UNORM); in onGpuSetup()
240 SkImage::CompressionType::kBC1_RGBA8_UNORM); in onGpuSetup()
/third_party/skia/include/core/
DSkImage.h199 enum class CompressionType { enum
208 static constexpr int kCompressionTypeCount = static_cast<int>(CompressionType::kLast) + 1;
210 static const CompressionType kETC1_CompressionType = CompressionType::kETC2_RGB8_UNORM;
225 CompressionType type);
273 CompressionType type,
/third_party/skia/include/gpu/
DGrBackendSurface.h117 static GrBackendFormat MakeMock(GrColorType colorType, SkImage::CompressionType compression,
182 SkImage::CompressionType asMockCompressionType() const;
219 GrBackendFormat(GrColorType, SkImage::CompressionType, bool isStencilFormat);
251 SkImage::CompressionType fCompressionType;
/third_party/flutter/skia/src/gpu/
DGrDataUtils.h16 size_t GrCompressedDataSize(SkImage::CompressionType, int w, int h);
27 void GrFillInCompressedData(SkImage::CompressionType, int width, int height, char* dest,
/third_party/skia/src/gpu/mtl/
DGrMtlCppUtil.h29 SkImage::CompressionType GrMtlBackendFormatToCompressionType(const GrBackendFormat& format);

1234