Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: src/gpu/GrGpuResourceCacheAccess.h

Issue 1810323002: Cache render targets that render to wrapped textures Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrGpuResourceCacheAccess.h
diff --git a/src/gpu/GrGpuResourceCacheAccess.h b/src/gpu/GrGpuResourceCacheAccess.h
index 4b47a1c93296e1d825b92da1819136412cc13012..e64614593151706947a51f681ff8fd43da48fbce 100644
--- a/src/gpu/GrGpuResourceCacheAccess.h
+++ b/src/gpu/GrGpuResourceCacheAccess.h
@@ -31,18 +31,6 @@ private:
}
/**
- * Is the resource object wrapping an externally allocated GPU resource that Skia has not taken
- * ownership of.
- */
- bool isBorrowed() const { return GrGpuResource::kBorrowed_LifeCycle == fResource->fLifeCycle; }
-
- /**
- * Is the resource object wrapping an externally allocated GPU resource that Skia has taken
- * ownership of.
- */
- bool isAdopted() const { return GrGpuResource::kAdopted_LifeCycle == fResource->fLifeCycle; }
-
- /**
* Called by the cache to delete the resource under normal circumstances.
*/
void release() {
« no previous file with comments | « src/gpu/GrGpuResource.cpp ('k') | src/gpu/GrGpuResourcePriv.h » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698