23 switch (
format.backend()) {
30 DXGI_FORMAT dxgiFormat;
33 case DXGI_FORMAT_BC1_UNORM:
43 return format.asMockCompressionType();
53 switch (
format.backend()) {
60 DXGI_FORMAT dxgiFormat;
71 }
else if (
format.isMockStencilFormat()) {
72 static constexpr int kMockStencilSize = 4;
73 return kMockStencilSize;
92 switch (
format.backend()) {
99 DXGI_FORMAT dxgiFormat;
107 if (
format.isMockStencilFormat()) {
108 static constexpr int kMockStencilBits = 8;
109 return kMockStencilBits;
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
size_t GrBackendFormatBytesPerPixel(const GrBackendFormat &format)
SkTextureCompressionType GrBackendFormatToCompressionType(const GrBackendFormat &format)
int GrBackendFormatStencilBits(const GrBackendFormat &format)
size_t GrBackendFormatBytesPerBlock(const GrBackendFormat &format)
static constexpr size_t GrDxgiFormatBytesPerBlock(DXGI_FORMAT format)
static constexpr int GrDxgiFormatStencilBits(DXGI_FORMAT format)
static constexpr size_t GrColorTypeBytesPerPixel(GrColorType ct)
static const GrBackendFormatData * GetBackendData(const GrBackendFormat &format)
uint32_t uint32_t * format
size_t CompressedRowBytes(SkTextureCompressionType type, int width)