Lines Matching defs:caps

208                                             const GrCaps& caps) {
215 SkASSERT(caps.clampToBorderSupport());
355 this->initCapsAndCompiler(sk_ref_sp(fGLContext->caps()));
601 if (this->caps()->writePixelsRowBytesSupport() ||
602 this->caps()->transferPixelsToRowBytesSupport()) {
621 const GrGLCaps& caps,
638 if (!caps.shaderCaps()->externalTextureSupport()) {
642 if (!caps.rectangleTextureSupport() && !skipRectTexSupportCheck) {
684 const GrGLCaps& caps, GrGLTexture::Desc* desc,
738 const GrGLCaps& caps = this->glCaps();
744 SkASSERT(caps.isFormatRenderable(desc.fFormat, sampleCnt));
745 SkASSERT(caps.isFormatTexturable(desc.fFormat));
759 sampleCnt = caps.getRenderTargetSampleCount(sampleCnt, desc.fFormat);
1047 const GrGLCaps& caps = this->glCaps();
1063 if (caps.writePixelsRowBytesSupport() && (rowBytes != trimRowBytes || restoreGLRowLength)) {
1075 SkASSERT(caps.writePixelsRowBytesSupport());
1087 const GrGLCaps& caps = this->glCaps();
1090 GrGLenum internalFormat = caps.getTexImageOrStorageInternalFormat(format);
1097 bool useTexStorage = caps.formatSupportsTexStorage(format);
1168 SkASSERT(GrGLCaps::kNone_MSFBOType != ctx.caps()->msFBOType());
1170 switch (ctx.caps()->msFBOType()) {
1673 fGLContext->caps()->setStencilFormatIndexForFormat(format, firstWorkingStencilFormatIndex);
1841 SkASSERT(windowState.numWindows() <= this->caps()->maxWindowRectangles());
1843 if (!this->caps()->maxWindowRectangles() ||
1868 if (!this->caps()->maxWindowRectangles() || fHWWindowRectsState.knownDisabled()) {
1883 GrCapsDebugf(this->caps(), "Failed to create program!\n");
1982 SkASSERT(!this->caps()->performColorClearsAsDraws());
1983 SkASSERT(!scissor.enabled() || !this->caps()->performPartialClearsAsDraws());
2031 SkASSERT(!this->caps()->performColorClearsAsDraws());
2037 SkASSERT(!this->caps()->performStencilClearsAsDraws());
2102 SkASSERT(!this->caps()->performStencilClearsAsDraws());
2103 SkASSERT(!scissor.enabled() || !this->caps()->performPartialClearsAsDraws());
2297 if (this->caps()->workarounds().force_update_scissor_state_when_binding_fbo0) {
2313 this->flushFramebufferSRGB(this->caps()->isFormatSRGB(target->backendFormat()));
2381 const GrGLCaps& caps = this->glCaps();
2386 if (GrGLCaps::kES_Apple_MSFBOType == caps.msFBOType()) {
2399 SkASSERT(!caps.framebufferResolvesMustBeFullSize() ||
2412 if (caps.invalidateFBType() != GrGLCaps::kNone_InvalidateFBType &&
2419 if (caps.invalidateFBType() == GrGLCaps::kInvalidate_InvalidateFBType) {
2422 SkASSERT(caps.invalidateFBType() == GrGLCaps::kDiscard_InvalidateFBType);
2515 if (this->caps()->conservativeRasterSupport()) {
2531 if (this->caps()->wireframeSupport()) {
2532 if (this->caps()->wireframeMode() || enabled) {
2575 SkASSERT(this->caps()->advancedBlendEquationSupport());
2612 SkASSERT(this->caps()->advancedBlendEquationSupport());
2642 if (!this->caps()->npotTextureTileSupport()) {
2663 if (!this->caps()->mipmapSupport() || texture->mipmapped() == GrMipmapped::kNo) {
2806 SkASSERT(this->caps()->shaderCaps()->tessellationSupport());
2872 const GrGLCaps& caps) {
2903 return caps.canCopyAsBlit(dstFormat, dstSampleCnt, dstTexTypePtr,
2917 const GrGLCaps& caps) {
2924 bool dstHasMSAARenderBuffer = dstRT ? rt_has_msaa_render_buffer(dstRT, caps) : false;
2925 bool srcHasMSAARenderBuffer = srcRT ? rt_has_msaa_render_buffer(srcRT, caps) : false;
2943 return caps.canCopyTexSubImage(dstFormat, dstHasMSAARenderBuffer, dstTexTypePtr,
2988 if (this->caps()->workarounds().flush_on_framebuffer_change) {
3012 this->caps()->workarounds().unbind_attachments_on_bound_render_fbo_delete) {
3071 const GrShaderCaps* shaderCaps = this->caps()->shaderCaps();
3187 const GrShaderCaps* shaderCaps = this->caps()->shaderCaps();
3600 SkASSERT(this->caps()->textureBarrierSupport());
3606 this->caps()->blendEquationSupport());
3614 SkASSERT(this->caps()->requiresManualFBBarrierAfterTessellatedStencilDraw());
3769 if (dimensions.width() > this->caps()->maxRenderTargetSize() ||
3770 dimensions.height() > this->caps()->maxRenderTargetSize()) {
3915 SkASSERT(this->caps()->areColorTypeAndFormatCompatible(colorType, beRT.getBackendFormat()));
3978 if (syncCpu || (!fFinishCallbacks.empty() && !this->caps()->fenceSyncSupport())) {
3999 if (!this->caps()->fenceSyncSupport()) {
4042 if (!this->caps()->fenceSyncSupport()) {
4049 if (this->caps()->fenceSyncSupport()) {
4055 SkASSERT(this->caps()->semaphoreSupport());
4062 SkASSERT(this->caps()->semaphoreSupport());
4145 // all of our caps information in a named sub-object.