Lines Matching defs:texture
59 bool GrTexture::StealBackendTexture(sk_sp<GrTexture> texture,
62 if (!texture->unique()) {
66 if (!texture->onStealBackendTexture(backendTexture, releaseProc)) {
70 GrResourceCache* cache = texture->getContext()->priv().getResourceCache();
73 // Ensure that the texture will be released by the cache when we drop the last ref.
74 // A texture that has no refs and no keys should be immediately removed.
75 if (texture->getUniqueKey().isValid()) {
76 texture->resourcePriv().removeUniqueKey();
78 if (texture->resourcePriv().getScratchKey().isValid()) {
79 texture->resourcePriv().removeScratchKey();
82 texture.reset();