16void GrSurfaceCharacterization::validate()
const {
44 if (fContextInfo != other.fContextInfo) {
48 return fCacheMaxResourceBytes == other.fCacheMaxResourceBytes &&
49 fOrigin == other.fOrigin &&
50 fImageInfo == other.fImageInfo &&
51 fBackendFormat == other.fBackendFormat &&
52 fSampleCnt == other.fSampleCnt &&
53 fIsTextureable == other.fIsTextureable &&
54 fIsMipmapped == other.fIsMipmapped &&
55 fUsesGLFBO0 == other.fUsesGLFBO0 &&
56 fVulkanSecondaryCBCompatible == other.fVulkanSecondaryCBCompatible &&
57 fIsProtected == other.fIsProtected &&
58 fSurfaceProps == other.fSurfaceProps;
73 fCacheMaxResourceBytes,
81 fVkRTSupportsInputAttachment,
82 fVulkanSecondaryCBCompatible,
94 fCacheMaxResourceBytes,
102 fVkRTSupportsInputAttachment,
103 fVulkanSecondaryCBCompatible,
118 fCacheMaxResourceBytes,
126 fVkRTSupportsInputAttachment,
127 fVulkanSecondaryCBCompatible,
145 fCacheMaxResourceBytes,
153 fVkRTSupportsInputAttachment,
154 fVulkanSecondaryCBCompatible,
static constexpr GrColorType SkColorTypeToGrColorType(SkColorType ct)
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
int maxRenderTargetSize() const
bool areColorTypeAndFormatCompatible(GrColorType grCT, const GrBackendFormat &format) const
virtual bool isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat &format, int sampleCount=1) const =0
const GrCaps * caps() const
GrContextThreadSafeProxyPriv priv()
bool operator==(const GrSurfaceCharacterization &other) const
GrSurfaceCharacterization createColorSpace(sk_sp< SkColorSpace >) const
GrSurfaceCharacterization createFBO0(bool usesGLFBO0) const
GrSurfaceCharacterization()
GrSurfaceCharacterization createResized(int width, int height) const
SkColorType colorType() const
GrSurfaceCharacterization createBackendFormat(SkColorType colorType, const GrBackendFormat &backendFormat) const
SkImageInfo makeWH(int newWidth, int newHeight) const
SkImageInfo makeColorSpace(sk_sp< SkColorSpace > cs) const
SkImageInfo makeColorType(SkColorType newColorType) const