Lines Matching defs:texture

504     GrVkTexture* texture = static_cast<GrVkTexture*>(surface->asTexture());
505 if (!texture) {
508 GrVkImage* texImage = texture->textureImage();
520 SkDebugf("Can't upload mipmap data to linear tiled texture");
547 texture->markMipmapsDirty();
562 bool GrVkGpu::onTransferPixelsTo(GrTexture* texture,
574 if (GrBackendFormatBytesPerPixel(texture->backendFormat()) != bpp) {
582 GrVkTexture* tex = static_cast<GrVkTexture*>(texture);
601 SkASSERT(SkIRect::MakeSize(texture->dimensions()).contains(rect));
931 // The assumption is either that we have no mipmaps, or that our rect is the entire texture
934 // We assume that if the texture has mip levels, we either upload to all the levels or just the
1044 // For now the assumption is that our rect is the entire texture.
1263 sk_sp<GrVkTexture> texture = GrVkTexture::MakeNewTexture(this, budgeted, dimensions, pixelFormat,
1265 if (!texture) {
1270 if (!this->uploadTexDataCompressed(texture->textureImage(), compression, pixelFormat,
1275 return std::move(texture);
1549 SkDebugf("Trying to create mipmap for linear tiled texture");
1756 sk_sp<GrVkTexture> texture =
1760 if (!texture) {
1763 GrVkImage* texImage = texture->textureImage();
1794 // Change image layout to shader read since if we use this texture as a borrowed
1795 // texture within Ganesh we require that its layout be set to that
1856 sk_sp<GrVkTexture> texture = GrVkTexture::MakeWrappedTexture(this,
1863 if (!texture) {
1871 GrVkImage* image = texture->textureImage();
1900 cmdBuffer->addGrSurface(texture);
1913 // Change image layout to shader read since if we use this texture as a borrowed
1914 // texture within Ganesh we require that its layout be set to that
1961 sk_sp<GrVkImage> texture = GrVkImage::MakeWrapped(this,
1969 SkASSERT(texture);
1970 if (!texture) {
1974 previousState->setVulkanState(texture->currentLayout(),
1975 texture->currentQueueFamilyIndex());
1977 set_layout_and_queue_from_mutable_state(this, texture.get(), newInfo);
2875 std::unique_ptr<GrSemaphore> GrVkGpu::prepareTextureForCrossContextUsage(GrTexture* texture) {
2876 SkASSERT(texture);
2877 GrVkImage* vkTexture = static_cast<GrVkTexture*>(texture)->textureImage();