8#ifndef GrTypesPriv_DEFINED
9#define GrTypesPriv_DEFINED
303 SK_ABORT(
"Unexpected texture type");
488#define GrCapsDebugf(caps, ...) if (!(caps)->suppressPrints()) SkDebugf(__VA_ARGS__)
490#define GrCapsDebugf(caps, ...) do {} while (0)
725 return {rgb, rgb, rgb,
a, 0,
e};
729 return {rgb, rgb, rgb, 0, 0,
e};
733 return {
r,
g,
b, 0, 0,
e};
737 return {0, 0, 0,
a, 0,
e};
741 return {
r, 0, 0, 0, 0,
e};
745 return {rg, rg, 0, 0, 0,
e};
749 return {0, 0, 0, 0, grayBits,
e};
753 return {0, 0, 0, 0, grayAlpha,
e};
758 constexpr int r()
const {
return fRBits; }
759 constexpr int g()
const {
return fGBits; }
760 constexpr int b()
const {
return fBBits; }
761 constexpr int a()
const {
return fABits; }
764 case 0:
return this->
r();
765 case 1:
return this->
g();
766 case 2:
return this->
b();
767 case 3:
return this->
a();
772 constexpr int gray()
const {
return fGrayBits; }
787 : fRBits(
r), fGBits(
g), fBBits(
b), fABits(
a), fGrayBits(
gray), fEncoding(
encoding) {
881 return (
desc.r() &&
desc.r() > n )||
945#if defined(SK_DEBUG) || defined(GR_TEST_UTILS) || defined(SK_ENABLE_DUMP_GPU)
946static constexpr const char* GrBackendApiToStr(
GrBackendApi api) {
958static constexpr const char* GrColorTypeToStr(
GrColorType ct) {
998static constexpr const char* GrSurfaceOriginToStr(
GrSurfaceOrigin origin) {
static constexpr int kGrInternalTextureFlagsMask
static constexpr bool GrColorTypeIsWiderThan(GrColorType colorType, int n)
static constexpr uint32_t GrColorTypeChannelFlags(GrColorType ct)
static constexpr int kGrInternalTextureRenderTargetFlagsMask
static constexpr GrColorFormatDesc GrGetColorTypeDesc(GrColorType ct)
static constexpr size_t GrColorTypeBytesPerPixel(GrColorType ct)
std::function< void(GrSurfaceProxy *, skgpu::Mipmapped)> GrVisitProxyFunc
static GrQuadAAFlags SkToGrQuadAAFlags(unsigned flags)
static constexpr size_t GrSizeDivRoundUp(size_t x, size_t y)
static constexpr int kGrInternalRenderTargetFlagsMask
static const int kGrClipEdgeTypeCnt
@ kRequiresTextureBarrier
GrFillRule GrFillRuleForPathFillType(SkPathFillType fillType)
@ kBorrow_GrWrapOwnership
static const constexpr int kGrGpuBufferTypeCount
static const int kGrColorTypeCnt
static constexpr bool GrClipEdgeTypeIsInverseFill(const GrClipEdgeType edgeType)
static constexpr bool GrAATypeIsHW(GrAAType type)
static constexpr SkColorType GrColorTypeToSkColorType(GrColorType ct)
static GrClipEdgeType GrInvertClipEdgeType(const GrClipEdgeType edgeType)
static constexpr bool GrColorTypeIsAlphaOnly(GrColorType ct)
static constexpr bool GrClipEdgeTypeIsFill(const GrClipEdgeType edgeType)
static const int kGrVertexAttribTypeCount
static constexpr bool GrClipEdgeTypeIsAA(const GrClipEdgeType edgeType)
static const int kGrAATypeCount
static constexpr int kNumGrPrimitiveTypes
GrFillRule GrFillRuleForSkPath(const SkPath &path)
@ kRequiresManualMSAAResolve
@ kVkRTSupportsInputAttachment
static constexpr bool GrIsPrimTypeLines(GrPrimitiveType type)
static constexpr bool GrColorTypeHasAlpha(GrColorType ct)
@ kDynamic_GrAccessPattern
@ kStatic_GrAccessPattern
@ kStream_GrAccessPattern
static bool GrTextureTypeHasRestrictedSampling(GrTextureType type)
static constexpr GrClampType GrColorTypeClampType(GrColorType colorType)
@ kUShort_norm_GrVertexAttribType
@ kFloat2_GrVertexAttribType
@ kUShort2_GrVertexAttribType
@ kUInt_GrVertexAttribType
@ kUByte4_norm_GrVertexAttribType
@ kUByte_GrVertexAttribType
@ kShort2_GrVertexAttribType
@ kUShort4_norm_GrVertexAttribType
@ kInt_GrVertexAttribType
@ kByte_GrVertexAttribType
@ kLast_GrVertexAttribType
@ kByte4_GrVertexAttribType
@ kFloat3_GrVertexAttribType
@ kFloat_GrVertexAttribType
@ kByte2_GrVertexAttribType
@ kFloat4_GrVertexAttribType
@ kShort4_GrVertexAttribType
@ kUShort2_norm_GrVertexAttribType
@ kInt3_GrVertexAttribType
@ kHalf2_GrVertexAttribType
@ kHalf4_GrVertexAttribType
@ kUByte4_GrVertexAttribType
@ kUByte2_GrVertexAttribType
@ kInt4_GrVertexAttribType
@ kUByte_norm_GrVertexAttribType
@ kInt2_GrVertexAttribType
@ kHalf_GrVertexAttribType
static const int kGrShaderTypeCount
static constexpr GrColorType SkColorTypeToGrColorType(SkColorType ct)
#define GR_MAKE_BITFIELD_CLASS_OPS(X)
@ kBottomLeft_GrSurfaceOrigin
@ kTopLeft_GrSurfaceOrigin
static const uint32_t rgba[kNumPixels]
#define SK_ABORT(message,...)
@ kR16G16B16A16_unorm_SkColorType
pixel with a little endian uint16_t for red, green, blue
@ kRGBA_10x6_SkColorType
pixel with 10 used bits (most significant) followed by 6 unused
@ kBGR_101010x_SkColorType
pixel with 10 bits each for blue, green, red; in 32-bit word
@ kARGB_4444_SkColorType
pixel with 4 bits for alpha, red, green, blue; in 16-bit word
@ kR8G8_unorm_SkColorType
pixel with a uint8_t for red and green
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kA16_unorm_SkColorType
pixel with a little endian uint16_t for alpha
@ kRGBA_F16_SkColorType
pixel with half floats for red, green, blue, alpha;
@ kAlpha_8_SkColorType
pixel with alpha in 8-bit byte
@ kRGB_101010x_SkColorType
pixel with 10 bits each for red, green, blue; in 32-bit word
@ kSRGBA_8888_SkColorType
@ kGray_8_SkColorType
pixel with grayscale level in 8-bit byte
@ kRGB_565_SkColorType
pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
@ kBGRA_10101010_XR_SkColorType
pixel with 10 bits each for blue, green, red, alpha; in 64-bit word, extended range
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
@ kRGB_888x_SkColorType
pixel with 8 bits each for red, green, blue; in 32-bit word
@ kBGRA_1010102_SkColorType
10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
@ kA16_float_SkColorType
pixel with a half float for alpha
@ kRGBA_F32_SkColorType
pixel using C float for red, green, blue, alpha; in 128-bit word
@ kRGBA_1010102_SkColorType
10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
@ kBGR_101010x_XR_SkColorType
pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
@ kR16G16_unorm_SkColorType
pixel with a little endian uint16_t for red and green
@ kRGBA_F16Norm_SkColorType
pixel with half floats in [0,1] for red, green, blue, alpha;
@ kUnknown_SkColorType
uninitialized
@ kR16G16_float_SkColorType
pixel with a half float for red and green
@ kRGB_SkColorChannelFlags
@ kRGBA_SkColorChannelFlags
@ kRed_SkColorChannelFlag
@ kGrayAlpha_SkColorChannelFlags
@ kRG_SkColorChannelFlags
@ kAlpha_SkColorChannelFlag
@ kGray_SkColorChannelFlag
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
#define SK_MAKE_BITFIELD_OPS(X)
@ kYes
Do pre-clip the geometry before applying the (perspective) matrix.
@ kNo
Don't pre-clip the geometry before applying the (perspective) matrix.
FlutterSemanticsFlag flags
Dart_NativeFunction function
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
std::true_type sk_is_trivially_relocatable
sk_sp< SkData > fOptionalStorage