• Home
  • Raw
  • Download

Lines Matching refs:glCaps

225         fNumTextureUnits = fGpu->glCaps().shaderCaps()->maxFragmentSamplers();  in SamplerObjectCache()
250 auto wrapX = wrap_mode_to_gl_wrap(state.wrapModeX(), fGpu->glCaps()); in bindSampler()
251 auto wrapY = wrap_mode_to_gl_wrap(state.wrapModeY(), fGpu->glCaps()); in bindSampler()
350 if (GrGLCaps::kChromium_TransferBufferType == this->glCaps().transferBufferType()) { in GrGLGpu()
364 if (this->glCaps().shaderCaps()->pathRenderingSupport()) { in GrGLGpu()
368 if (this->glCaps().samplerObjectSupport()) { in GrGLGpu()
468 if (this->glCaps().shaderCaps()->pathRenderingSupport()) { in disconnect()
495 if (!this->glCaps().isCoreProfile()) { in onResetContext()
506 if (this->glCaps().imagingSupport() && !this->glCaps().isCoreProfile()) { in onResetContext()
524 this->glCaps().fbFetchRequiresEnablePerSample()) { in onResetContext()
599 if (this->glCaps().unpackRowLengthSupport()) { in onResetContext()
602 if (this->glCaps().packRowLengthSupport()) { in onResetContext()
605 if (this->glCaps().packFlipYSupport()) { in onResetContext()
643 if (!check_backend_texture(backendTex, this->glCaps(), &idDesc)) { in onWrapBackendTexture()
647 idDesc.fInfo.fFormat = this->glCaps().configSizedInternalFormat(backendTex.config()); in onWrapBackendTexture()
677 if (!check_backend_texture(backendTex, this->glCaps(), &idDesc)) { in onWrapRenderableBackendTexture()
681 idDesc.fInfo.fFormat = this->glCaps().configSizedInternalFormat(backendTex.config()); in onWrapRenderableBackendTexture()
894 SkASSERT(this->glCaps().unpackRowLengthSupport()); in onTransferPixels()
905 if (!this->glCaps().getTexImageFormats(texConfig, bufferAsConfig, &internalFormat, in onTransferPixels()
1194 const GrGLCaps& caps = this->glCaps(); in uploadTexData()
1207 if (!this->glCaps().getTexImageFormats(texConfig, dataConfig, &internalFormat, &externalFormat, in uploadTexData()
1212 GrGLenum internalFormatForTexStorage = this->glCaps().configSizedInternalFormat(texConfig); in uploadTexData()
1357 const GrGLCaps& caps = this->glCaps(); in uploadCompressedTexData()
1422 SkASSERT((GrGLCaps::kMixedSamples_MSFBOType == this->glCaps().msFBOType()) == in createRenderTargetObjects()
1430 if (desc.fSampleCnt > 1 && GrGLCaps::kNone_MSFBOType == this->glCaps().msFBOType()) { in createRenderTargetObjects()
1443 if (desc.fSampleCnt > 1 && this->glCaps().usesMSAARenderBuffers()) { in createRenderTargetObjects()
1450 this->glCaps().getRenderbufferFormat(desc.fConfig, &colorRenderbufferFormat); in createRenderTargetObjects()
1471 if (!this->glCaps().isConfigVerifiedColorAttachment(desc.fConfig)) { in createRenderTargetObjects()
1481 if (this->glCaps().usesImplicitMSAAResolve() && desc.fSampleCnt > 1) { in createRenderTargetObjects()
1492 if (!this->glCaps().isConfigVerifiedColorAttachment(desc.fConfig)) { in createRenderTargetObjects()
1543 if (GrGLCaps::kNone_MSFBOType == this->glCaps().msFBOType() && desc.fSampleCnt > 1) { in onCreateTexture()
1553 if (performClear && !this->glCaps().clearTextureSupport() && in onCreateTexture()
1554 !this->glCaps().canConfigBeFBOColorAttachment(desc.fConfig)) { in onCreateTexture()
1601 if (this->glCaps().clearTextureSupport()) { in onCreateTexture()
1649 if (!this->glCaps().hasStencilFormatBeenDeterminedForConfig(config)) { in getCompatibleStencilIndex()
1674 if (!this->glCaps().getTexImageFormats(config, config, &internalFormat, &externalFormat, in getCompatibleStencilIndex()
1711 int stencilFmtCnt = this->glCaps().stencilFormats().count(); in getCompatibleStencilIndex()
1715 const GrGLCaps::StencilFormat& sFmt = this->glCaps().stencilFormats()[i]; in getCompatibleStencilIndex()
1756 return this->glCaps().getStencilFormatIndexForConfig(config); in getCompatibleStencilIndex()
1774 if (renderTarget && this->glCaps().textureUsageSupport()) { in createTextureImpl()
1800 info->fFormat = this->glCaps().configSizedInternalFormat(desc.fConfig); in createTextureImpl()
1824 const GrGLCaps::StencilFormat& sFmt = this->glCaps().stencilFormats()[sIdx]; in createStencilAttachmentForRenderTarget()
2165 if (this->glCaps().clearToBoundaryValuesIsBroken() && in clear()
2264 return this->glCaps().readPixelsSupported(rtConfig, readConfig, getIntegerv, bindRenderTarget, in readPixelsSupported()
2274 if (this->glCaps().isConfigRenderable(rtConfig)) { in readPixelsSupported()
2283 } else if (this->glCaps().canConfigBeFBOColorAttachment(rtConfig)) { in readPixelsSupported()
2301 return this->glCaps().readPixelsSupported(rtConfig, readConfig, getIntegerv, bindRenderTarget, in readPixelsSupported()
2319 if (!renderTarget && !this->glCaps().canConfigBeFBOColorAttachment(surface->config())) { in onReadPixels()
2332 if (!this->glCaps().getReadPixelsFormat(surface->config(), dstAsConfig, &externalFormat, in onReadPixels()
2374 if (this->glCaps().packRowLengthSupport() && !(rowBytes % bytesPerPixel)) { in onReadPixels()
2386 if (this->glCaps().detachStencilFromMSAABuffersBeforeReadPixels() && in onReadPixels()
2408 SkASSERT(this->glCaps().packRowLengthSupport()); in onReadPixels()
2479 if (this->glCaps().srgbWriteControl()) { in flushRenderTargetNoColorWrites()
2566 if (this->glCaps().requiresCullFaceEnableDisableWhenDrawingLinesAfterNonLines() && in draw()
2612 if (this->glCaps().drawArraysBaseVertexIsBroken()) { in sendMeshToGpu()
2632 if (this->glCaps().drawRangeElementsSupport()) { in sendIndexedMeshToGpu()
2646 int maxInstances = this->glCaps().maxInstancesPerDrawWithoutCrashing(instanceCount); in sendInstancedMeshToGpu()
2665 int maxInstances = this->glCaps().maxInstancesPerDrawWithoutCrashing(instanceCount); in sendIndexedInstancedMeshToGpu()
2679 if (this->glCaps().usesMSAARenderBuffers()) { in onResolveRenderTarget()
2693 if (GrGLCaps::kES_Apple_MSFBOType == this->glCaps().msFBOType()) { in onResolveRenderTarget()
2703 this->glCaps().blitFramebufferSupportFlags()) { in onResolveRenderTarget()
2993 newSamplerParams.fWrapS = wrap_mode_to_gl_wrap(samplerState.wrapModeX(), this->glCaps()); in bindTexture()
2994 newSamplerParams.fWrapT = wrap_mode_to_gl_wrap(samplerState.wrapModeY(), this->glCaps()); in bindTexture()
3008 if (this->glCaps().mipMapLevelAndLodControlSupport()) { in bindTexture()
3026 if (this->glCaps().clampToBorderSupport()) { in bindTexture()
3040 if (this->glCaps().textureSwizzleSupport()) { in bindTexture()
3041 auto swizzle = this->glCaps().configSwizzle(texture->config()); in bindTexture()
3061 if (this->glCaps().mipMapLevelAndLodControlSupport() && in bindTexture()
3063 !this->glCaps().dontSetBaseOrMaxLevelForExternalTextures())) { in bindTexture()
3153 static bool rt_has_msaa_render_buffer(const GrGLRenderTarget* rt, const GrGLCaps& glCaps) { in rt_has_msaa_render_buffer() argument
3158 return rt->numColorSamples() > 1 && glCaps.usesMSAARenderBuffers() && rt->renderFBOID() != 0; in rt_has_msaa_render_buffer()
3289 if (preferCopy && this->glCaps().canCopyAsDraw(dst->config(), SkToBool(src->asTexture()))) { in onCopySurface()
3295 if (can_copy_texsubimage(dst, dstOrigin, src, srcOrigin, this->glCaps())) { in onCopySurface()
3301 srcRect, dstPoint, this->glCaps())) { in onCopySurface()
3306 if (!preferCopy && this->glCaps().canCopyAsDraw(dst->config(), SkToBool(src->asTexture()))) { in onCopySurface()
3600 if (!this->glCaps().canConfigBeFBOColorAttachment(dst->config())) { in copySurfaceAsDraw()
3675 if (this->glCaps().srgbWriteControl()) { in copySurfaceAsDraw()
3690 SkASSERT(can_copy_texsubimage(dst, dstOrigin, src, srcOrigin, this->glCaps())); in copySurfaceAsCopyTexSubImage()
3723 srcRect, dstPoint, this->glCaps())); in copySurfaceAsBlitFramebuffer()
3784 if (!this->glCaps().doManualMipmapping() || in onRegenerateMipMapLevels()
3785 !this->glCaps().canConfigBeFBOColorAttachment(texture->config())) { in onRegenerateMipMapLevels()
3965 const GrGLCaps& caps = this->glCaps(); in createTestingOnlyBackendTexture()
3978 if (trimRowBytes != rowBytes && this->glCaps().unpackRowLengthSupport()) { in createTestingOnlyBackendTexture()
3987 if (!this->glCaps().getTexImageFormats(config, config, &internalFormat, &externalFormat, in createTestingOnlyBackendTexture()
3992 info.fFormat = this->glCaps().configSizedInternalFormat(config); in createTestingOnlyBackendTexture()
4070 if (!this->glCaps().isConfigRenderable(config)) { in createTestingOnlyBackendRenderTarget()
4076 if (config == kBGRA_8888_GrPixelConfig && this->glCaps().bgraIsInternalFormat()) { in createTestingOnlyBackendRenderTarget()
4078 this->glCaps().getTexImageFormats(config, config, &colorBufferFormat, &externalFormat, in createTestingOnlyBackendRenderTarget()
4082 this->glCaps().getRenderbufferFormat(config, &colorBufferFormat); in createTestingOnlyBackendRenderTarget()
4116 this->glCaps().getSizedInternalFormat(config, &info.fFormat); in createTestingOnlyBackendRenderTarget()
4141 auto stencilBufferFormat = this->glCaps().stencilFormats()[sFormatIdx].fInternalFormat; in createTestingOnlyBackendRenderTarget()
4146 if (this->glCaps().stencilFormats()[sFormatIdx].fPacked) { in createTestingOnlyBackendRenderTarget()
4165 auto stencilBits = SkToInt(this->glCaps().stencilFormats()[sFormatIdx].fStencilBits); in createTestingOnlyBackendRenderTarget()
4201 if (gpu->glCaps().isCoreProfile()) { in bindInternalVertexArray()
4205 int attrCount = gpu->glCaps().maxVertexAttributes(); in bindInternalVertexArray()
4220 int attrCount = gpu->glCaps().maxVertexAttributes(); in bindInternalVertexArray()