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

Unified Diff: src/gpu/GrGpuResourcePriv.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/GrGpuResourcePriv.h
diff --git a/src/gpu/GrGpuResourcePriv.h b/src/gpu/GrGpuResourcePriv.h
index 5da1c948783ffdae44c984885e6ceaf7e9e02f32..db305a66de5f5ef7dda4948cc943d8738bcc1a24 100644
--- a/src/gpu/GrGpuResourcePriv.h
+++ b/src/gpu/GrGpuResourcePriv.h
@@ -44,16 +44,12 @@ public:
/**
* Does the resource count against the resource budget?
*/
- SkBudgeted isBudgeted() const {
- bool ret = GrGpuResource::kCached_LifeCycle == fResource->fLifeCycle;
- SkASSERT(ret || !fResource->getUniqueKey().isValid());
- return SkBudgeted(ret);
- }
+ SkBudgeted isBudgeted() const { return fResource->fBudgeted; }
/**
* Is the resource object wrapping an externally allocated GPU resource?
*/
- bool isExternal() const { return fResource->isExternal(); }
+ bool refsWrappedResources() const { return fResource->refsWrappedResources(); }
/**
* If this resource can be used as a scratch resource this returns a valid scratch key.
« no previous file with comments | « src/gpu/GrGpuResourceCacheAccess.h ('k') | src/gpu/GrPath.h » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698