Lines Matching refs:tex
179 sk_sp<GrTexture> GrMockGpu::onWrapBackendTexture(const GrBackendTexture& tex, GrColorType colorType, in onWrapBackendTexture() argument
183 SkAssertResult(tex.getMockTextureInfo(&texInfo)); in onWrapBackendTexture()
187 desc.fWidth = tex.width(); in onWrapBackendTexture()
188 desc.fHeight = tex.height(); in onWrapBackendTexture()
191 GrMipMapsStatus mipMapsStatus = tex.hasMipMaps() ? GrMipMapsStatus::kValid in onWrapBackendTexture()
193 auto isProtected = GrProtected(tex.isProtected()); in onWrapBackendTexture()
198 sk_sp<GrTexture> GrMockGpu::onWrapRenderableBackendTexture(const GrBackendTexture& tex, in onWrapRenderableBackendTexture() argument
204 SkAssertResult(tex.getMockTextureInfo(&texInfo)); in onWrapRenderableBackendTexture()
208 desc.fWidth = tex.width(); in onWrapRenderableBackendTexture()
209 desc.fHeight = tex.height(); in onWrapRenderableBackendTexture()
213 tex.hasMipMaps() ? GrMipMapsStatus::kValid : GrMipMapsStatus::kNotAllocated; in onWrapRenderableBackendTexture()
218 auto isProtected = GrProtected(tex.isProtected()); in onWrapRenderableBackendTexture()
239 sk_sp<GrRenderTarget> GrMockGpu::onWrapBackendTextureAsRenderTarget(const GrBackendTexture& tex, in onWrapBackendTextureAsRenderTarget() argument
243 SkAssertResult(tex.getMockTextureInfo(&texInfo)); in onWrapBackendTextureAsRenderTarget()
247 desc.fWidth = tex.width(); in onWrapBackendTextureAsRenderTarget()
248 desc.fHeight = tex.height(); in onWrapBackendTextureAsRenderTarget()
254 auto isProtected = GrProtected(tex.isProtected()); in onWrapBackendTextureAsRenderTarget()
291 void GrMockGpu::deleteBackendTexture(const GrBackendTexture& tex) { in deleteBackendTexture() argument
292 SkASSERT(GrBackendApi::kMock == tex.backend()); in deleteBackendTexture()
295 if (tex.getMockTextureInfo(&info)) { in deleteBackendTexture()
301 bool GrMockGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const { in isTestingOnlyBackendTexture()
302 SkASSERT(GrBackendApi::kMock == tex.backend()); in isTestingOnlyBackendTexture()
305 if (!tex.getMockTextureInfo(&info)) { in isTestingOnlyBackendTexture()