• Home
  • Raw
  • Download

Lines Matching refs:tex

153 sk_sp<GrTexture> GrMockGpu::onWrapBackendTexture(const GrBackendTexture& tex,  in onWrapBackendTexture()  argument
158 SkAssertResult(tex.getMockTextureInfo(&texInfo)); in onWrapBackendTexture()
165 GrMipmapStatus mipmapStatus = tex.hasMipmaps() ? GrMipmapStatus::kValid in onWrapBackendTexture()
167 auto isProtected = GrProtected(tex.isProtected()); in onWrapBackendTexture()
168 return sk_sp<GrTexture>(new GrMockTexture(this, tex.dimensions(), isProtected, mipmapStatus, in onWrapBackendTexture()
172 sk_sp<GrTexture> GrMockGpu::onWrapCompressedBackendTexture(const GrBackendTexture& tex, in onWrapCompressedBackendTexture() argument
178 sk_sp<GrTexture> GrMockGpu::onWrapRenderableBackendTexture(const GrBackendTexture& tex, in onWrapRenderableBackendTexture() argument
183 SkAssertResult(tex.getMockTextureInfo(&texInfo)); in onWrapRenderableBackendTexture()
187 tex.hasMipmaps() ? GrMipmapStatus::kValid : GrMipmapStatus::kNotAllocated; in onWrapRenderableBackendTexture()
192 auto isProtected = GrProtected(tex.isProtected()); in onWrapRenderableBackendTexture()
193 return sk_sp<GrTexture>(new GrMockTextureRenderTarget(this, tex.dimensions(), sampleCnt, in onWrapRenderableBackendTexture()
260 void GrMockGpu::deleteBackendTexture(const GrBackendTexture& tex) { in deleteBackendTexture() argument
261 SkASSERT(GrBackendApi::kMock == tex.backend()); in deleteBackendTexture()
264 if (tex.getMockTextureInfo(&info)) { in deleteBackendTexture()
270 bool GrMockGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const { in isTestingOnlyBackendTexture()
271 SkASSERT(GrBackendApi::kMock == tex.backend()); in isTestingOnlyBackendTexture()
274 if (!tex.getMockTextureInfo(&info)) { in isTestingOnlyBackendTexture()