/third_party/skia/src/gpu/mock/ |
D | GrMockCaps.cpp | 38 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 …]
|
D | GrMockCaps.h | 44 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 …]
|
D | GrMockGpu.cpp | 107 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 …]
|
D | GrMockTypes.cpp | 13 return GrBackendFormat::MakeMock(fColorType, SkImage::CompressionType::kNone); in getBackendFormat()
|
D | GrMockAttachment.h | 25 return GrBackendFormat::MakeMock(GrColorType::kUnknown, SkImage::CompressionType::kNone, in backendFormat()
|
/third_party/skia/src/gpu/ |
D | GrBackendUtils.cpp | 32 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 …]
|
D | GrDataUtils.h | 20 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,
|
D | GrDataUtils.cpp | 161 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 …]
|
D | GrSurface.cpp | 35 SkImage::CompressionType compressionType = GrBackendFormatToCompressionType(format); in ComputeSize() 36 if (compressionType != SkImage::CompressionType::kNone) { in ComputeSize()
|
D | GrCaps.cpp | 415 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()
|
D | GrGpu.cpp | 270 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()
|
D | GrBackendUtils.h | 15 SkImage::CompressionType GrBackendFormatToCompressionType(const GrBackendFormat& format);
|
/third_party/skia/src/core/ |
D | SkCompressedDataUtils.h | 19 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,
|
D | SkCompressedDataUtils.cpp | 230 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/ |
D | GrMockTypes.h | 19 , 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/ |
D | CompressedBackendAllocationTest.cpp | 41 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/ |
D | GrMockTypesPriv.h | 16 , fCompressionType(SkImage::CompressionType::kNone) {} in GrMockTextureSpec() 22 SkImage::CompressionType fCompressionType = SkImage::CompressionType::kNone;
|
D | GrTypesPriv.h | 1231 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/ |
D | exoticformats.cpp | 29 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()
|
D | bc1_transparency.cpp | 82 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()
|
D | compressed_textures.cpp | 105 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/ |
D | SkImage.h | 199 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/ |
D | GrBackendSurface.h | 117 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/ |
D | GrDataUtils.h | 16 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/ |
D | GrMtlCppUtil.h | 29 SkImage::CompressionType GrMtlBackendFormatToCompressionType(const GrBackendFormat& format);
|