8#ifndef GrContextOptions_DEFINED
9#define GrContextOptions_DEFINED
78 bool fSuppressPrints =
false;
97 int fBufferMapThreshold = -1;
103 size_t fMinimumStagingBufferSize = 64 * 1024;
116 bool fDoManualMipmapping =
false;
124 bool fDisableCoverageCountingPaths =
true;
130 bool fDisableDistanceFieldPaths =
false;
136 bool fAllowPathMaskCaching =
true;
142 bool fDisableGpuYUVConversion =
false;
147 size_t fGlyphCacheTextureMaximumBytes = 2048 * 1024 * 4;
153 float fMinDistanceFieldFontSize = 18;
158#if defined(SK_BUILD_FOR_ANDROID)
159 float fGlyphsAsPathsFontSize = 384;
160#elif defined(SK_BUILD_FOR_MAC)
161 float fGlyphsAsPathsFontSize = 256;
163 float fGlyphsAsPathsFontSize = 324;
176 bool fAvoidStencilBuffers =
false;
196 bool fPreferExternalImagesOverES3 =
false;
203 bool fDisableDriverCorrectnessWorkarounds =
false;
208 int fRuntimeProgramCacheSize = 256;
235 int fInternalMultisampleCount = 4;
246 int fMaxCachedVulkanSecondaryCommandBuffers = -1;
251 bool fSuppressMipmapSupport =
false;
257 bool fDisableTessellationPathRenderer =
false;
263 bool fEnableExperimentalHardwareTessellation =
false;
269 bool fSupportBilerpFromGlyphAtlas =
false;
275 bool fReducedShaderVariations =
false;
280 bool fAllowMSAAOnNewIntel =
false;
289 bool fAlwaysUseTexStorageWhenAvailable =
false;
300#if defined(GR_TEST_UTILS)
309 bool fFailFlushTimeCallbacks =
false;
314 bool fSuppressDualSourceBlending =
false;
320 bool fSuppressAdvancedBlendEquations =
false;
325 bool fSuppressFramebufferFetch =
false;
330 bool fAllPathsVolatile =
false;
335 bool fWireframeMode =
false;
340 bool fClearAllTextures =
false;
345 bool fRandomGLOOM =
false;
350 bool fDisallowWriteAndTransferPixelRowBytes =
false;
363 int fResourceCacheLimitOverride = -1;
368 int fMaxTextureAtlasSize = 2048;
void * GrDirectContextDestroyedContext
void(* GrDirectContextDestroyedProc)(GrDirectContextDestroyedContext destroyedContext)
static constexpr int32_t SK_MaxS32
@ kYes
Do pre-clip the geometry before applying the (perspective) matrix.
@ kNo
Don't pre-clip the geometry before applying the (perspective) matrix.
PersistentCache & operator=(const PersistentCache &)=delete
PersistentCache(const PersistentCache &)=delete
virtual ~PersistentCache()=default
virtual void store(const SkData &, const SkData &)
virtual void store(const SkData &key, const SkData &data, const SkString &)
virtual sk_sp< SkData > load(const SkData &key)=0
PersistentCache()=default
GrDriverBugWorkarounds fDriverBugWorkarounds
std::shared_ptr< const fml::Mapping > data