Index: src/gpu/GrGpuResourcePriv.h |
diff --git a/src/gpu/GrGpuResourcePriv.h b/src/gpu/GrGpuResourcePriv.h |
index 8b672832c5279bf355bc176c1a2f0c098a049266..82bf072db4a8bd40cce39b1deae48e52afbb6931 100644 |
--- a/src/gpu/GrGpuResourcePriv.h |
+++ b/src/gpu/GrGpuResourcePriv.h |
@@ -44,7 +44,7 @@ public: |
* Does the resource count against the resource budget? |
*/ |
SkBudgeted isBudgeted() const { |
- bool ret = GrGpuResource::kCached_LifeCycle == fResource->fLifeCycle; |
+ bool ret = SkBudgeted::kYes == fResource->fBudgeted; |
SkASSERT(ret || !fResource->getUniqueKey().isValid()); |
return SkBudgeted(ret); |
} |
@@ -52,7 +52,7 @@ public: |
/** |
* Is the resource object wrapping an externally allocated GPU resource? |
*/ |
- bool isExternal() const { return fResource->isExternal(); } |
+ bool refsWrappedObjects() const { return fResource->fRefsWrappedObjects; } |
/** |
* If this resource can be used as a scratch resource this returns a valid scratch key. |