Lines Matching defs:texture
26 GrTexture* texture,
29 : fOriginalTexture(texture)
37 // Generator has been freed, and no one is borrowing the texture. Notify the original cache
44 GrBackendTextureImageGenerator::Make(sk_sp<GrTexture> texture, GrSurfaceOrigin origin,
47 GrDirectContext* dContext = texture->getContext();
49 // Attach our texture to this context's resource cache. This ensures that deletion will happen
50 // in the correct thread/context. This adds the only ref to the texture that will persist from
52 dContext->priv().getResourceCache()->insertDelayedTextureUnref(texture.get());
54 GrBackendTexture backendTexture = texture->getBackendTexture();
61 SkImageInfo info = SkImageInfo::Make(texture->width(), texture->height(), colorType, alphaType,
64 info, texture.get(), origin, dContext->directContextID(),
70 GrTexture* texture,
76 , fRefHelper(new RefHelper(texture, owningContextID, std::move(semaphore)))
105 // cross context texture functionality can be subsumed by the thread-safe cache
127 "GrBackendTextureImageGenerator: Trying to use texture on two GrContexts!\n");
161 // Ganesh assumes that, when wrapping a mipmapped backend texture from a client, that its
178 // If a client re-draws the same image multiple times, the texture we return
180 // re-called. In that case, we want to re-use the borrowed texture we've
190 // We just gained access to the texture. If we're on the original
191 // context, we could use the original texture, but we'd have no way of
194 // it. This is unfortunate - we'll have two texture objects referencing
196 // texture, so this should be safe. We make the texture uncacheable so
222 // If the caller wants the entire texture and we have the correct mip support, we're done