Lines Matching defs:config
725 if (kIndex_8_GrPixelConfig == srcConfig || GrPixelConfigIsCompressed(dstSurface->config())) {
741 if (GrPixelConfigIsSRGB(dstSurface->config()) != GrPixelConfigIsSRGB(srcConfig)) {
749 // These settings we will always want if a temp draw is performed. Initially set the config
758 bool configsAreRBSwaps = GrPixelConfigSwapRAndB(srcConfig) == dstSurface->config();
763 tempDrawInfo->fTempSurfaceDesc.fConfig = dstSurface->config();
765 tempDrawInfo->fWriteConfig = dstSurface->config();
769 tempDrawInfo->fTempSurfaceDesc.fConfig = dstSurface->config();
771 tempDrawInfo->fWriteConfig = dstSurface->config();
777 tempDrawInfo->fTempSurfaceDesc.fConfig = dstSurface->config();
779 tempDrawInfo->fWriteConfig = dstSurface->config();
792 GrPixelConfig config) {
798 if (GrPixelConfigIsSRGB(surface->config()) != GrPixelConfigIsSRGB(config)) {
812 GrPixelConfig config, const void* buffer,
816 if (!check_write_and_transfer_input(glTex, surface, config)) {
825 // We check that config == desc.fConfig in GrGLGpu::canWriteTexturePixels()
826 SkASSERT(config == glTex->desc().fConfig);
831 left, top, width, height, config, buffer, rowBytes);
844 GrPixelConfig config, GrTransferBuffer* buffer,
848 if (!check_write_and_transfer_input(glTex, surface, config)) {
869 left, top, width, height, config, buffer, rowBytes);
880 static inline GrGLint config_alignment(GrPixelConfig config) {
881 SkASSERT(!GrPixelConfigIsCompressed(config));
882 switch (config) {
1311 SkDebugf("--- new texture [%d] size=(%d %d) config=%d\n",
1371 SkDebugf("--- new compressed texture [%d] size=(%d %d) config=%d\n",
1403 int GrGLGpu::getCompatibleStencilIndex(GrPixelConfig config) {
1405 SkASSERT(this->caps()->isConfigRenderable(config, false));
1406 if (!this->glCaps().hasStencilFormatBeenDeterminedForConfig(config)) {
1430 if (!this->glCaps().getTexImageFormats(config, config, &internalFormat, &externalFormat,
1509 fGLContext->caps()->setStencilFormatIndexForConfig(config, firstWorkingStencilFormatIndex);
1511 return this->glCaps().getStencilFormatIndexForConfig(config);
1603 int sIdx = this->getCompatibleStencilIndex(rt->config());
1810 args.fPipeline->getRenderTarget()->config());
2157 int width, int height, GrPixelConfig config,
2179 return caps.packRowLengthSupport() || GrBytesPerPixel(config) * width == rowBytes;
2190 GrPixelConfig rtConfig = target->config();
2218 GrPixelConfig config = surfaceForConfig->config();
2219 return this->readPixelsSupported(config, readConfig);
2235 GrPixelConfig srcConfig = srcSurface->config();
2283 // Better to do a draw with a R/B swap and then read as the original config.
2304 if (GrPixelConfigIsSRGB(srcSurface->config())) {
2337 GrPixelConfig config,
2348 if (requires_srgb_conversion(surface->config(), config)) {
2354 if (!this->readPixelsSupported(renderTarget, config)) {
2357 if (GrPixelConfigIsSRGB(renderTarget->config())) {
2360 if (kAlpha_8_GrPixelConfig == config &&
2379 if (!this->glCaps().getReadPixelsFormat(renderTarget->config(), config, &externalFormat,
2408 size_t bytesPerPixel = GrBytesPerPixel(config);
2430 GL_CALL(PixelStorei(GR_GL_PACK_ALIGNMENT, config_alignment(config)));
2531 bool enableSRGBWrite = GrPixelConfigIsSRGB(target->config());
2976 static void get_tex_param_swizzle(GrPixelConfig config,
2979 const GrSwizzle& swizzle = caps.configSwizzle(config);
3034 if (!this->caps()->mipMapSupport() || GrPixelConfigIsCompressed(texture->config())) {
3050 get_tex_param_swizzle(texture->config(), this->glCaps(), newTexParams.fSwizzleRGBA);
3148 if (gpu->glCaps().isConfigRenderable(dst->config(), dst->desc().fSampleCnt > 0) &&
3149 gpu->glCaps().isConfigRenderable(src->config(), src->desc().fSampleCnt > 0)) {
3165 (src->desc().fSampleCnt > 0 || src->config() != dst->config())) {
3189 (kBGRA_8888_GrPixelConfig == dst->config() || kBGRA_8888_GrPixelConfig == src->config())) {
3216 if (gpu->glCaps().isConfigRenderable(src->config(), src->desc().fSampleCnt > 0) &&
3217 !GrPixelConfigIsCompressed(src->config()) &&
3275 // If the src is a texture, we can implement the blit as a draw assuming the config is
3277 if (src->asTexture() && this->caps()->isConfigRenderable(src->config(), false)) {
3280 desc->fConfig = src->config();
3297 kBGRA_8888_GrPixelConfig == src->config()) {
3298 // glCopyTexSubImage2D doesn't work with this config. If the bgra can be used with fbo blit
3316 if (this->caps()->isConfigRenderable(src->config(), false)) {
3319 desc->fConfig = src->config();
3326 desc->fConfig = src->config();
3338 if (this->glCaps().glslCaps()->configOutputSwizzle(src->config()) !=
3339 this->glCaps().glslCaps()->configOutputSwizzle(dst->config())) {
3593 // TODO: This should swizzle the output to match dst's config, though it is a debugging
3868 GrPixelConfig config) {
3869 if (!this->caps()->isConfigTexturable(config)) {
3889 if (!this->glCaps().getTexImageFormats(config, config, &internalFormat, &externalFormat,