Lines Matching refs:caps
44 void GrGpu::initCapsAndCompiler(sk_sp<const GrCaps> caps) {
45 fCaps = std::move(caps);
54 const GrMipLevel* texels, int mipLevelCount, const GrCaps* caps) {
64 if (caps->writePixelsRowBytesSupport()) {
107 if (this->caps()->isFormatCompressed(format)) {
113 if (!this->caps()->validateSurfaceParams(dimensions,
124 this->caps()->getRenderTargetSampleCount(renderTargetSampleCnt, format);
140 if (!this->caps()->reuseScratchTextures() && renderable == GrRenderable::kNo) {
144 if (renderTargetSampleCnt > 1 && !this->caps()->msaaResolvesAutomatically()) {
166 this->caps()->shouldInitializeTextures() ? (1 << mipLevelCount) - 1 : 0;
196 this->caps())) {
203 if (this->caps()->shouldInitializeTextures()) {
259 if (dimensions.width() < 1 || dimensions.width() > this->caps()->maxTextureSize() ||
260 dimensions.height() < 1 || dimensions.height() > this->caps()->maxTextureSize()) {
264 // caps()->shouldInitializeTextures() here.
275 if (!this->caps()->isFormatTexturable(format, GrTextureType::k2D)) {
295 if (dimensions.width() < 1 || dimensions.width() > this->caps()->maxTextureSize() ||
296 dimensions.height() < 1 || dimensions.height() > this->caps()->maxTextureSize()) {
308 if (!this->caps()->isFormatTexturable(format, GrTextureType::k2D)) {
327 const GrCaps* caps = this->caps();
328 SkASSERT(caps);
330 if (!caps->isFormatTexturable(backendTex.getBackendFormat(), backendTex.textureType())) {
333 if (backendTex.width() > caps->maxTextureSize() ||
334 backendTex.height() > caps->maxTextureSize()) {
346 const GrCaps* caps = this->caps();
347 SkASSERT(caps);
349 if (!caps->isFormatTexturable(backendTex.getBackendFormat(), backendTex.textureType())) {
352 if (backendTex.width() > caps->maxTextureSize() ||
353 backendTex.height() > caps->maxTextureSize()) {
369 const GrCaps* caps = this->caps();
371 if (!caps->isFormatTexturable(backendTex.getBackendFormat(), backendTex.textureType()) ||
372 !caps->isFormatRenderable(backendTex.getBackendFormat(), sampleCnt)) {
376 if (backendTex.width() > caps->maxRenderTargetSize() ||
377 backendTex.height() > caps->maxRenderTargetSize()) {
383 if (tex && sampleCnt > 1 && !caps->msaaResolvesAutomatically()) {
392 const GrCaps* caps = this->caps();
394 if (!caps->isFormatRenderable(backendRT.getBackendFormat(), backendRT.sampleCnt())) {
421 if (!this->caps()->reuseScratchBuffers()) {
451 SkASSERT(this->caps()->areColorTypeAndFormatCompatible(surfaceColorType,
459 if (!this->caps()->readPixelsRowBytesSupport()) {
516 if (!validate_texel_levels(rect.size(), srcColorType, texels, mipLevelCount, this->caps())) {
568 if (this->caps()->writePixelsRowBytesSupport()) {
606 SkASSERT(this->caps()->areColorTypeAndFormatCompatible(surfaceColorType,
610 auto supportedRead = this->caps()->supportedReadPixelsColorType(
637 SkASSERT(this->caps()->mipmapSupport());
694 if (this->caps()->semaphoreSupport() && info.fNumSemaphores) {
877 const GrCaps* caps = this->caps();
883 if (caps->isFormatCompressed(format)) {
888 if (dimensions.isEmpty() || dimensions.width() > caps->maxTextureSize() ||
889 dimensions.height() > caps->maxTextureSize()) {
893 if (mipMapped == GrMipmapped::kYes && !this->caps()->mipmapSupport()) {
907 if (backendTexture.hasMipmaps() && !this->caps()->mipmapSupport()) {
918 const GrCaps* caps = this->caps();
931 dimensions.width() > caps->maxTextureSize() ||
932 dimensions.height() > caps->maxTextureSize()) {
936 if (mipMapped == GrMipmapped::kYes && !this->caps()->mipmapSupport()) {
961 if (backendTexture.hasMipmaps() && !this->caps()->mipmapSupport()) {