Lines Matching refs:config
117 bool isConfigTexturable(GrPixelConfig config) const override {
118 return SkToBool(fConfigTable[config].fFlags & ConfigInfo::kTextureable_Flag);
121 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const override {
123 return SkToBool(fConfigTable[config].fFlags & ConfigInfo::kRenderableWithMSAA_Flag);
125 return SkToBool(fConfigTable[config].fFlags & ConfigInfo::kRenderable_Flag);
128 bool canConfigBeImageStorage(GrPixelConfig config) const override {
129 return SkToBool(fConfigTable[config].fFlags & ConfigInfo::kCanUseAsImageStorage_Flag);
131 bool canConfigBeFBOColorAttachment(GrPixelConfig config) const {
132 return SkToBool(fConfigTable[config].fFlags & ConfigInfo::kFBOColorAttachment_Flag);
135 bool isConfigTexSupportEnabled(GrPixelConfig config) const {
136 return SkToBool(fConfigTable[config].fFlags & ConfigInfo::kCanUseTexStorage_Flag);
139 bool canUseConfigWithTexelBuffer(GrPixelConfig config) const {
140 return SkToBool(fConfigTable[config].fFlags & ConfigInfo::kCanUseWithTexelBuffer_Flag);
144 const GrSwizzle& configSwizzle(GrPixelConfig config) const {
145 return fConfigTable[config].fSwizzle;
148 GrGLenum configSizedInternalFormat(GrPixelConfig config) const {
149 return fConfigTable[config].fFormats.fSizedInternalFormat;
161 bool getRenderbufferFormat(GrPixelConfig config, GrGLenum* internalFormat) const;
164 GrGLenum getImageFormat(GrPixelConfig config) const {
165 return fConfigTable[config].fFormats.fSizedInternalFormat;
178 * Has a stencil format index been found for the config (or we've found that no format works).
180 bool hasStencilFormatBeenDeterminedForConfig(GrPixelConfig config) const {
181 return fConfigTable[config].fStencilFormatIndex != ConfigInfo::kUnknown_StencilIndex;
185 * Gets the stencil format index for the config. This assumes
187 * no stencil format is supported with the config. Otherwise, returned index refers to the array
190 int getStencilFormatIndexForConfig(GrPixelConfig config) const {
191 SkASSERT(this->hasStencilFormatBeenDeterminedForConfig(config));
192 return fConfigTable[config].fStencilFormatIndex;
197 * the config. If < 0 it records that the config has no supported stencil format index.
199 void setStencilFormatIndexForConfig(GrPixelConfig config, int index) {
200 SkASSERT(!this->hasStencilFormatBeenDeterminedForConfig(config));
202 fConfigTable[config].fStencilFormatIndex = ConfigInfo::kUnsupported_StencilFormatIndex;
204 fConfigTable[config].fStencilFormatIndex = index;
209 * Call to note that a color config has been verified as a valid color
213 void markConfigAsValidColorAttachment(GrPixelConfig config) {
214 fConfigTable[config].fFlags |= ConfigInfo::kVerifiedColorAttachment_Flag;
218 * Call to check whether a config has been verified as a valid color
221 bool isConfigVerifiedColorAttachment(GrPixelConfig config) const {
222 return SkToBool(fConfigTable[config].fFlags & ConfigInfo::kVerifiedColorAttachment_Flag);
456 config where both the CPU data and GrSurface are the same config. To get the external
464 // Either the base or sized internal format depending on the GL and config.
482 // This indicates that a stencil format has not yet been determined for the config.
484 // This indicates that there is no supported stencil format for the config.
496 /** kFBOColorAttachment means that even if the config cannot be a GrRenderTarget, we can