8#ifndef skgpu_graphite_ContextOptions_DEFINED
9#define skgpu_graphite_ContextOptions_DEFINED
14namespace skgpu {
class ShaderErrorHandler; }
18struct ContextOptionsPriv;
28 bool fDisableDriverCorrectnessWorkarounds =
false;
42 int fInternalMultisampleCount = 4;
49 bool fClientWillExternallySynchronizeAllThreads =
false;
54 size_t fGlyphCacheTextureMaximumBytes = 2048 * 1024 * 4;
60 float fMinDistanceFieldFontSize = 18;
65#if defined(SK_BUILD_FOR_ANDROID)
66 float fGlyphsAsPathsFontSize = 384;
67#elif defined(SK_BUILD_FOR_MAC)
68 float fGlyphsAsPathsFontSize = 256;
70 float fGlyphsAsPathsFontSize = 324;
76 int fMaxPathAtlasTextureSize = 8192;
82 bool fAllowMultipleAtlasTextures =
true;
83 bool fSupportBilerpFromGlyphAtlas =
false;
91 bool fDisableCachedGlyphUploads =
false;
93 static constexpr size_t kDefaultContextBudget = 256 * (1 << 20);
97 size_t fGpuBudgetInBytes = kDefaultContextBudget;
103 bool fSetBackendLabels =
true;
105 bool fSetBackendLabels =
false;