Lines Matching refs:glCaps
50 if (this->glCaps().skipErrorChecks()) { \
225 fNumTextureUnits = fGpu->glCaps().shaderCaps()->maxFragmentSamplers(); in SamplerObjectCache()
255 GrGLenum wrapX = wrap_mode_to_gl_wrap(state.wrapModeX(), fGpu->glCaps()); in bindSampler()
256 GrGLenum wrapY = wrap_mode_to_gl_wrap(state.wrapModeY(), fGpu->glCaps()); in bindSampler()
361 if (GrGLCaps::TransferBufferType::kChromium == this->glCaps().transferBufferType()) { in GrGLGpu()
375 if (this->glCaps().useSamplerObjects()) { in GrGLGpu()
509 if (!this->glCaps().isCoreProfile()) { in onResetContext()
520 if (this->glCaps().imagingSupport() && !this->glCaps().isCoreProfile()) { in onResetContext()
534 this->glCaps().fbFetchRequiresEnablePerSample()) { in onResetContext()
599 if (this->glCaps().readPixelsRowBytesSupport()) { in onResetContext()
602 if (this->glCaps().packFlipYSupport()) { in onResetContext()
655 if (!check_backend_texture(backendTex, this->glCaps(), &desc)) { in onWrapBackendTexture()
670 if (this->glCaps().isFormatRenderable(backendTex.getBackendFormat(), 1)) { in onWrapBackendTexture()
709 if (!check_compressed_backend_texture(backendTex, this->glCaps(), &desc)) { in onWrapCompressedBackendTexture()
732 const GrGLCaps& caps = this->glCaps(); in onWrapRenderableBackendTexture()
735 if (!check_backend_texture(backendTex, this->glCaps(), &desc)) { in onWrapRenderableBackendTexture()
783 if (!this->glCaps().isFormatRenderable(format, backendRT.sampleCnt())) { in onWrapBackendRenderTarget()
787 int sampleCount = this->glCaps().getRenderTargetSampleCount(backendRT.sampleCnt(), format); in onWrapBackendRenderTarget()
832 if (mipLevelCount && this->glCaps().mipmapLevelControlSupport()) { in onWritePixels()
895 SkASSERT(this->glCaps().writePixelsRowBytesSupport()); in onTransferPixelsTo()
904 this->glCaps().getTexSubImageExternalFormatAndType( in onTransferPixelsTo()
956 SkASSERT(this->glCaps().isFormatTexturable(textureFormat)); in uploadColorTypeTexData()
963 this->glCaps().getTexSubImageExternalFormatAndType( in uploadColorTypeTexData()
980 this->glCaps().getTexSubImageDefaultFormatTypeAndColorType(textureFormat, &externalFormat, in uploadColorToTex()
1027 const GrGLCaps& caps = this->glCaps(); in uploadTexData()
1067 const GrGLCaps& caps = this->glCaps(); in uploadCompressedTexData()
1186 if (sampleCount > 1 && GrGLCaps::kNone_MSFBOType == this->glCaps().msFBOType()) { in createRenderTargetObjects()
1206 if (!this->glCaps().usesImplicitMSAAResolve()) { in createRenderTargetObjects()
1211 colorRenderbufferFormat = this->glCaps().getRenderbufferInternalFormat(desc.fFormat); in createRenderTargetObjects()
1232 SkASSERT(this->glCaps().usesImplicitMSAAResolve()); // Otherwise fMSColorRenderbufferID!=0. in createRenderTargetObjects()
1300 SkASSERT(GrGLCaps::kNone_MSFBOType != this->glCaps().msFBOType() || renderTargetSampleCnt == 1); in onCreateTexture()
1316 if (mipLevelCount > 1 || !this->glCaps().rectangleTextureSupport()) { in onCreateTexture()
1354 if (this->glCaps().clearTextureSupport()) { in onCreateTexture()
1357 this->glCaps().getTexSubImageDefaultFormatTypeAndColorType( in onCreateTexture()
1365 } else if (this->glCaps().canFormatBeFBOColorAttachment(format.asGLFormat()) && in onCreateTexture()
1366 !this->glCaps().performColorClearsAsDraws()) { in onCreateTexture()
1499 if (backendTexture.hasMipMaps() && this->glCaps().mipmapLevelControlSupport()) { in onUpdateCompressedBackendTexture()
1531 SkASSERT(this->glCaps().canFormatBeFBOColorAttachment(format)); in getCompatibleStencilIndex()
1533 if (!this->glCaps().hasStencilFormatBeenDeterminedForFormat(format)) { in getCompatibleStencilIndex()
1559 int stencilFmtCnt = this->glCaps().stencilFormats().count(); in getCompatibleStencilIndex()
1563 GrGLFormat sFmt = this->glCaps().stencilFormats()[i]; in getCompatibleStencilIndex()
1602 return this->glCaps().getStencilFormatIndexForFormat(format); in getCompatibleStencilIndex()
1645 if (GrRenderable::kYes == renderable && this->glCaps().textureUsageSupport()) { in createTexture()
1656 GrGLenum internalFormat = this->glCaps().getTexImageOrStorageInternalFormat(format); in createTexture()
1660 if (this->glCaps().formatSupportsTexStorage(format)) { in createTexture()
1667 this->glCaps().getTexImageExternalFormatAndType(format, &externalFormat, &externalType); in createTexture()
1705 GrGLFormat sFmt = this->glCaps().stencilFormats()[sIdx]; in makeStencilAttachment()
1739 GrGLenum glFormat = this->glCaps().getRenderbufferInternalFormat(format.asGLFormat()); in makeMSAAAttachment()
1957 static bool use_tiled_rendering(const GrGLCaps& glCaps, in use_tiled_rendering() argument
1961 return glCaps.tiledRenderingSupport() && GrLoadOp::kClear == stencilLoadStore.fLoadOp && in use_tiled_rendering()
1976 if (use_tiled_rendering(this->glCaps(), stencilLoadStore)) { in beginCommandBuffer()
2019 if (GrGLCaps::kNone_InvalidateFBType != this->glCaps().invalidateFBType()) { in endCommandBuffer()
2034 if (GrGLCaps::kInvalidate_InvalidateFBType == this->glCaps().invalidateFBType()) { in endCommandBuffer()
2038 SkASSERT(GrGLCaps::kDiscard_InvalidateFBType == this->glCaps().invalidateFBType()); in endCommandBuffer()
2045 if (use_tiled_rendering(this->glCaps(), stencilLoadStore)) { in endCommandBuffer()
2108 if (!renderTarget && !this->glCaps().isFormatRenderable(format, 1)) { in readOrTransferPixelsFrom()
2113 this->glCaps().getReadPixelsFormat(surface->backendFormat().asGLFormat(), in readOrTransferPixelsFrom()
2140 SkASSERT(this->glCaps().readPixelsRowBytesSupport()); in readOrTransferPixelsFrom()
2149 SkASSERT(this->glCaps().readPixelsRowBytesSupport()); in readOrTransferPixelsFrom()
2227 if (!this->glCaps().skipErrorChecks()) { in flushRenderTargetNoColorWrites()
2257 if (this->glCaps().srgbWriteControl()) { in flushRenderTargetNoColorWrites()
2261 if (this->glCaps().shouldQueryImplementationReadSupport(target->format())) { in flushRenderTargetNoColorWrites()
2266 this->glCaps().didQueryImplementationReadSupport(target->format(), format, type); in flushRenderTargetNoColorWrites()
2283 if (this->glCaps().requiresCullFaceEnableDisableWhenDrawingLinesAfterNonLines() && in prepareToDraw()
2336 if (GrGLCaps::kES_Apple_MSFBOType == this->glCaps().msFBOType()) { in resolveRenderFBOs()
2350 this->glCaps().blitFramebufferSupportFlags()) { in resolveRenderFBOs()
2368 if (this->glCaps().invalidateFBType() != GrGLCaps::kNone_InvalidateFBType && in resolveRenderFBOs()
2374 if (this->glCaps().invalidateFBType() == GrGLCaps::kInvalidate_InvalidateFBType) { in resolveRenderFBOs()
2377 SkASSERT(this->glCaps().invalidateFBType() == GrGLCaps::kDiscard_InvalidateFBType); in resolveRenderFBOs()
2522 if (this->glCaps().neverDisableColorWrites() && !blendInfo.fWriteColor) { in flushBlendAndColorWrite()
2633 if (this->glCaps().useSamplerObjects()) { in bindTexture()
2635 if (this->glCaps().mustSetAnyTexParameterToEnableMipmapping()) { in bindTexture()
2660 newSamplerState.fWrapS = wrap_mode_to_gl_wrap(samplerState.wrapModeX(), this->glCaps()); in bindTexture()
2661 newSamplerState.fWrapT = wrap_mode_to_gl_wrap(samplerState.wrapModeY(), this->glCaps()); in bindTexture()
2675 if (this->glCaps().mipmapLodControlSupport()) { in bindTexture()
2693 if (this->glCaps().clampToBorderSupport()) { in bindTexture()
2709 if (this->glCaps().textureSwizzleSupport()) { in bindTexture()
2732 if (this->glCaps().mipmapLevelControlSupport() && in bindTexture()
2734 !this->glCaps().dontSetBaseOrMaxLevelForExternalTextures())) { in bindTexture()
2789 if (this->glCaps().clearToBoundaryValuesIsBroken() && in flushClearColor()
2867 static bool rt_has_msaa_render_buffer(const GrGLRenderTarget* rt, const GrGLCaps& glCaps) { in rt_has_msaa_render_buffer() argument
2872 return rt->numSamples() > 1 && glCaps.usesMSAARenderBuffers() && rt->multisampleFBOID() != 0; in rt_has_msaa_render_buffer()
3001 if (preferCopy && this->glCaps().canCopyAsDraw(dstFormat, SkToBool(src->asTexture()))) { in onCopySurface()
3007 if (can_copy_texsubimage(dst, src, this->glCaps())) { in onCopySurface()
3012 if (can_blit_framebuffer_for_copy_surface(dst, src, srcRect, dstPoint, this->glCaps())) { in onCopySurface()
3016 if (!preferCopy && this->glCaps().canCopyAsDraw(dstFormat, SkToBool(src->asTexture()))) { in onCopySurface()
3303 if (!this->glCaps().isFormatRenderable(dstTex->format(), 1)) { in copySurfaceAsDraw()
3360 if (this->glCaps().srgbWriteControl()) { in copySurfaceAsDraw()
3372 SkASSERT(can_copy_texsubimage(dst, src, this->glCaps())); in copySurfaceAsCopyTexSubImage()
3393 SkASSERT(can_blit_framebuffer_for_copy_surface(dst, src, srcRect, dstPoint, this->glCaps())); in copySurfaceAsBlitFramebuffer()
3440 if (!this->glCaps().doManualMipmapping() || !this->glCaps().isFormatRenderable(format, 1)) { in onRegenerateMipMapLevels()
3519 SkASSERT(this->glCaps().mipmapLevelControlSupport()); in onRegenerateMipMapLevels()
3615 if (!this->glCaps().rectangleTextureSupport() || mipMapped == GrMipmapped::kYes) { in onCreateBackendTexture()
3660 if (numMipLevels && this->glCaps().mipmapLevelControlSupport()) { in onClearBackendTexture()
3736 auto format = this->glCaps().getFormatFromColorType(colorType); in createTestingOnlyBackendRenderTarget()
3737 sampleCnt = this->glCaps().getRenderTargetSampleCount(sampleCnt, format); in createTestingOnlyBackendRenderTarget()
3745 if (sampleCnt > 1 && !this->glCaps().usesMSAARenderBuffers()) { in createTestingOnlyBackendRenderTarget()
3748 this->glCaps().getRenderbufferInternalFormat(GrGLFormat::kBGRA8) != GR_GL_BGRA8) { in createTestingOnlyBackendRenderTarget()
3819 GrGLenum renderBufferFormat = this->glCaps().getRenderbufferInternalFormat(format); in createTestingOnlyBackendRenderTarget()
3835 auto stencilBufferFormat = this->glCaps().stencilFormats()[sFormatIdx]; in createTestingOnlyBackendRenderTarget()
3849 if (GrGLFormatIsPackedDepthStencil(this->glCaps().stencilFormats()[sFormatIdx])) { in createTestingOnlyBackendRenderTarget()
3869 auto stencilBits = SkToInt(GrGLFormatStencilBits(this->glCaps().stencilFormats()[sFormatIdx])); in createTestingOnlyBackendRenderTarget()
3895 if (gpu->glCaps().isCoreProfile()) { in bindInternalVertexArray()
3899 int attrCount = gpu->glCaps().maxVertexAttributes(); in bindInternalVertexArray()
3914 int attrCount = gpu->glCaps().maxVertexAttributes(); in bindInternalVertexArray()
3944 if (!this->glCaps().skipErrorChecks()) { in onSubmitToGpu()
3961 if (this->glCaps().fenceType() == GrGLCaps::FenceType::kNVFence) { in insertFence()
3976 if (this->glCaps().fenceType() == GrGLCaps::FenceType::kNVFence) { in waitSync()
4068 if (this->glCaps().fenceType() == GrGLCaps::FenceType::kNVFence) { in deleteSync()