8#ifndef GrSurfaceCharacterization_DEFINED
9#define GrSurfaceCharacterization_DEFINED
46 : fCacheMaxResourceBytes(0)
63 return !(*
this == other);
99 int width()
const {
return fImageInfo.width(); }
100 int height()
const {
return fImageInfo.height(); }
105 bool usesGLFBO0()
const {
return UsesGLFBO0::kYes == fUsesGLFBO0; }
107 return VkRTSupportsInputAttachment::kYes == fVkRTSupportsInputAttachment;
110 return VulkanSecondaryCBCompatible::kYes == fVulkanSecondaryCBCompatible;
128 size_t cacheMaxResourceBytes,
140 : fContextInfo(
std::move(contextInfo))
141 , fCacheMaxResourceBytes(cacheMaxResourceBytes)
143 , fBackendFormat(
std::move(backendFormat))
145 , fSampleCnt(sampleCnt)
146 , fIsTextureable(isTextureable)
147 , fIsMipmapped(isMipmapped)
148 , fUsesGLFBO0(usesGLFBO0)
149 , fVkRTSupportsInputAttachment(vkRTSupportsInputAttachment)
150 , fVulkanSecondaryCBCompatible(vulkanSecondaryCBCompatible)
151 , fIsProtected(isProtected)
152 , fSurfaceProps(surfaceProps) {
161 size_t cacheMaxResourceBytes,
166 Textureable isTextureable,
168 UsesGLFBO0 usesGLFBO0,
169 VkRTSupportsInputAttachment vkRTSupportsInputAttachment,
170 VulkanSecondaryCBCompatible vulkanSecondaryCBCompatible,
177 fContextInfo = std::move(contextInfo);
178 fCacheMaxResourceBytes = cacheMaxResourceBytes;
181 fBackendFormat = std::move(backendFormat);
183 fSampleCnt = sampleCnt;
184 fIsTextureable = isTextureable;
185 fIsMipmapped = isMipmapped;
186 fUsesGLFBO0 = usesGLFBO0;
187 fVkRTSupportsInputAttachment = vkRTSupportsInputAttachment;
188 fVulkanSecondaryCBCompatible = vulkanSecondaryCBCompatible;
189 fIsProtected = isProtected;
190 fSurfaceProps = surfaceProps;
196 size_t fCacheMaxResourceBytes;
202 Textureable fIsTextureable;
204 UsesGLFBO0 fUsesGLFBO0;
205 VkRTSupportsInputAttachment fVkRTSupportsInputAttachment;
206 VulkanSecondaryCBCompatible fVulkanSecondaryCBCompatible;
@ kBottomLeft_GrSurfaceOrigin
@ kUnknown_SkColorType
uninitialized
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
@ kYes
Do pre-clip the geometry before applying the (perspective) matrix.
@ kNo
Don't pre-clip the geometry before applying the (perspective) matrix.
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
sk_sp< GrContextThreadSafeProxy > refContextInfo() const
SkISize dimensions() const
GrSurfaceOrigin origin() const
sk_sp< SkColorSpace > refColorSpace() const
GrSurfaceCharacterization & operator=(const GrSurfaceCharacterization &other)=default
GrSurfaceCharacterization(const GrSurfaceCharacterization &)=default
GrSurfaceCharacterization()
bool operator!=(const GrSurfaceCharacterization &other) const
bool vkRTSupportsInputAttachment() const
size_t cacheMaxResourceBytes() const
bool isTextureable() const
bool vulkanSecondaryCBCompatible() const
SkColorSpace * colorSpace() const
GrSurfaceCharacterization & operator=(GrSurfaceCharacterization &&)=default
GrContextThreadSafeProxy * contextInfo() const
const SkImageInfo & imageInfo() const
SkColorType colorType() const
VkRTSupportsInputAttachment
const GrBackendFormat & backendFormat() const
GrSurfaceCharacterization(GrSurfaceCharacterization &&)=default
VulkanSecondaryCBCompatible
const SkSurfaceProps & surfaceProps() const
skgpu::Protected isProtected() const
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 to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set
bool operator==(C p1, const scoped_nsprotocol< C > &p2)