Lines Matching refs:glCaps
51 if (this->glCaps().skipErrorChecks()) { \
226 fNumTextureUnits = fGpu->glCaps().shaderCaps()->maxFragmentSamplers();
256 GrGLenum wrapX = wrap_mode_to_gl_wrap(state.wrapModeX(), fGpu->glCaps());
257 GrGLenum wrapY = wrap_mode_to_gl_wrap(state.wrapModeY(), fGpu->glCaps());
362 if (GrGLCaps::TransferBufferType::kChromium == this->glCaps().transferBufferType()) {
376 if (this->glCaps().useSamplerObjects()) {
510 if (!this->glCaps().isCoreProfile()) {
521 if (this->glCaps().imagingSupport() && !this->glCaps().isCoreProfile()) {
535 this->glCaps().fbFetchRequiresEnablePerSample()) {
549 if (this->glCaps().clientCanDisableMultisample()) {
605 if (this->glCaps().readPixelsRowBytesSupport()) {
608 if (this->glCaps().packFlipYSupport()) {
661 if (!check_backend_texture(backendTex, this->glCaps(), &desc)) {
676 if (this->glCaps().isFormatRenderable(backendTex.getBackendFormat(), 1)) {
715 if (!check_compressed_backend_texture(backendTex, this->glCaps(), &desc)) {
738 const GrGLCaps& caps = this->glCaps();
741 if (!check_backend_texture(backendTex, this->glCaps(), &desc)) {
789 if (!this->glCaps().isFormatRenderable(format, backendRT.sampleCnt())) {
793 int sampleCount = this->glCaps().getRenderTargetSampleCount(backendRT.sampleCnt(), format);
841 if (mipLevelCount && this->glCaps().mipmapLevelControlSupport()) {
901 SkASSERT(this->glCaps().transferPixelsToRowBytesSupport());
910 this->glCaps().getTexSubImageExternalFormatAndType(
952 if (this->glCaps().transferBufferType() != GrGLCaps::TransferBufferType::kARB_PBO &&
953 this->glCaps().transferBufferType() != GrGLCaps::TransferBufferType::kNV_PBO) {
976 SkASSERT(this->glCaps().isFormatTexturable(textureFormat));
983 this->glCaps().getTexSubImageExternalFormatAndType(
1000 this->glCaps().getTexSubImageDefaultFormatTypeAndColorType(textureFormat, &externalFormat,
1047 const GrGLCaps& caps = this->glCaps();
1087 const GrGLCaps& caps = this->glCaps();
1218 if (sampleCount > 1 && GrGLCaps::kNone_MSFBOType == this->glCaps().msFBOType()) {
1233 } else if (this->glCaps().usesImplicitMSAAResolve()) {
1245 colorRenderbufferFormat = this->glCaps().getRenderbufferInternalFormat(desc.fFormat);
1270 if (!this->glCaps().skipErrorChecks()) {
1276 if (this->glCaps().rebindColorAttachmentAfterCheckFramebufferStatus()) {
1298 if (!this->glCaps().skipErrorChecks()) {
1304 if (this->glCaps().rebindColorAttachmentAfterCheckFramebufferStatus()) {
1362 SkASSERT(GrGLCaps::kNone_MSFBOType != this->glCaps().msFBOType() || renderTargetSampleCnt == 1);
1378 if (mipLevelCount > 1 || !this->glCaps().rectangleTextureSupport()) {
1416 if (this->glCaps().clearTextureSupport()) {
1419 this->glCaps().getTexSubImageDefaultFormatTypeAndColorType(
1427 } else if (this->glCaps().canFormatBeFBOColorAttachment(format.asGLFormat()) &&
1428 !this->glCaps().performColorClearsAsDraws()) {
1572 if (backendTexture.hasMipMaps() && this->glCaps().mipmapLevelControlSupport()) {
1604 SkASSERT(this->glCaps().canFormatBeFBOColorAttachment(format));
1606 if (!this->glCaps().hasStencilFormatBeenDeterminedForFormat(format)) {
1632 int stencilFmtCnt = this->glCaps().stencilFormats().count();
1636 GrGLFormat sFmt = this->glCaps().stencilFormats()[i];
1675 return this->glCaps().getStencilFormatIndexForFormat(format);
1679 if (gpu->glCaps().debugSupport()) {
1729 if (GrRenderable::kYes == renderable && this->glCaps().textureUsageSupport()) {
1740 GrGLenum internalFormat = this->glCaps().getTexImageOrStorageInternalFormat(format);
1744 if (this->glCaps().formatSupportsTexStorage(format)) {
1751 this->glCaps().getTexImageExternalFormatAndType(format, &externalFormat, &externalType);
1779 GrGLFormat sFmt = this->glCaps().stencilFormats()[sIdx];
2001 static bool use_tiled_rendering(const GrGLCaps& glCaps,
2005 return glCaps.tiledRenderingSupport() && GrLoadOp::kClear == stencilLoadStore.fLoadOp &&
2020 if (use_tiled_rendering(this->glCaps(), stencilLoadStore)) {
2063 if (GrGLCaps::kNone_InvalidateFBType != this->glCaps().invalidateFBType()) {
2076 if (GrGLCaps::kInvalidate_InvalidateFBType == this->glCaps().invalidateFBType()) {
2080 SkASSERT(GrGLCaps::kDiscard_InvalidateFBType == this->glCaps().invalidateFBType());
2087 if (use_tiled_rendering(this->glCaps(), stencilLoadStore)) {
2153 if (!renderTarget && !this->glCaps().isFormatRenderable(format, 1)) {
2158 this->glCaps().getReadPixelsFormat(surface->backendFormat().asGLFormat(),
2182 SkASSERT(this->glCaps().readPixelsRowBytesSupport());
2196 SkASSERT(this->glCaps().readPixelsRowBytesSupport());
2281 if (!this->glCaps().skipErrorChecks() &&
2282 !this->glCaps().rebindColorAttachmentAfterCheckFramebufferStatus()) {
2312 if (this->glCaps().srgbWriteControl()) {
2316 if (this->glCaps().shouldQueryImplementationReadSupport(target->format())) {
2321 this->glCaps().didQueryImplementationReadSupport(target->format(), format, type);
2338 if (this->glCaps().requiresCullFaceEnableDisableWhenDrawingLinesAfterNonLines() &&
2367 if (this->glCaps().framebufferResolvesMustBeFullSize()) {
2381 const GrGLCaps& caps = this->glCaps();
2548 if (this->glCaps().neverDisableColorWrites() && !blendInfo.fWriteColor) {
2586 if (this->glCaps().mustResetBlendFuncBetweenDualSourceAndDisable() &&
2674 if (this->glCaps().useSamplerObjects()) {
2676 if (this->glCaps().mustSetAnyTexParameterToEnableMipmapping()) {
2701 newSamplerState.fWrapS = wrap_mode_to_gl_wrap(samplerState.wrapModeX(), this->glCaps());
2702 newSamplerState.fWrapT = wrap_mode_to_gl_wrap(samplerState.wrapModeY(), this->glCaps());
2716 if (this->glCaps().mipmapLodControlSupport()) {
2734 if (this->glCaps().clampToBorderSupport()) {
2750 if (this->glCaps().textureSwizzleSupport()) {
2773 if (this->glCaps().mipmapLevelControlSupport() &&
2775 !this->glCaps().dontSetBaseOrMaxLevelForExternalTextures())) {
2830 if (this->glCaps().clearToBoundaryValuesIsBroken() &&
2908 static bool rt_has_msaa_render_buffer(const GrGLRenderTarget* rt, const GrGLCaps& glCaps) {
2913 return rt->numSamples() > 1 && glCaps.usesMSAARenderBuffers() && !rt->isFBO0(true/*msaa*/);
3036 // This implicitly handles this->glCaps().useDrawInsteadOfAllRenderTargetWrites().
3039 if (preferCopy && this->glCaps().canCopyAsDraw(dstFormat, SkToBool(src->asTexture()))) {
3047 if (can_copy_texsubimage(dst, src, this->glCaps())) {
3052 if (can_blit_framebuffer_for_copy_surface(dst, src, srcRect, dstPoint, this->glCaps())) {
3056 if (!preferCopy && this->glCaps().canCopyAsDraw(dstFormat, SkToBool(src->asTexture()))) {
3348 if (!this->glCaps().isFormatRenderable(dstTex->format(), 1)) {
3403 if (this->glCaps().srgbWriteControl()) {
3415 SkASSERT(can_copy_texsubimage(dst, src, this->glCaps()));
3436 SkASSERT(can_blit_framebuffer_for_copy_surface(dst, src, srcRect, dstPoint, this->glCaps()));
3483 if (!this->glCaps().doManualMipmapping() || !this->glCaps().isFormatRenderable(format, 1)) {
3561 SkASSERT(this->glCaps().mipmapLevelControlSupport());
3657 if (!this->glCaps().rectangleTextureSupport() || mipMapped == GrMipmapped::kYes) {
3702 if (numMipLevels && this->glCaps().mipmapLevelControlSupport()) {
3778 auto format = this->glCaps().getFormatFromColorType(colorType);
3779 sampleCnt = this->glCaps().getRenderTargetSampleCount(sampleCnt, format);
3787 if (sampleCnt > 1 && !this->glCaps().usesMSAARenderBuffers()) {
3790 this->glCaps().getRenderbufferInternalFormat(GrGLFormat::kBGRA8) != GR_GL_BGRA8) {
3861 GrGLenum renderBufferFormat = this->glCaps().getRenderbufferInternalFormat(format);
3877 auto stencilBufferFormat = this->glCaps().stencilFormats()[sFormatIdx];
3891 if (GrGLFormatIsPackedDepthStencil(this->glCaps().stencilFormats()[sFormatIdx])) {
3911 auto stencilBits = SkToInt(GrGLFormatStencilBits(this->glCaps().stencilFormats()[sFormatIdx]));
3937 if (gpu->glCaps().isCoreProfile()) {
3941 int attrCount = gpu->glCaps().maxVertexAttributes();
3956 int attrCount = gpu->glCaps().maxVertexAttributes();
3986 if (!this->glCaps().skipErrorChecks()) {
4003 if (this->glCaps().fenceType() == GrGLCaps::FenceType::kNVFence) {
4018 if (this->glCaps().fenceType() == GrGLCaps::FenceType::kNVFence) {
4109 if (this->glCaps().fenceType() == GrGLCaps::FenceType::kNVFence) {