aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpuResourcePriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrGpuResourcePriv.h')
-rw-r--r--src/gpu/GrGpuResourcePriv.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gpu/GrGpuResourcePriv.h b/src/gpu/GrGpuResourcePriv.h
index 62dc85059a..5da1c94878 100644
--- a/src/gpu/GrGpuResourcePriv.h
+++ b/src/gpu/GrGpuResourcePriv.h
@@ -50,7 +50,12 @@ public:
return SkBudgeted(ret);
}
- /**
+ /**
+ * Is the resource object wrapping an externally allocated GPU resource?
+ */
+ bool isExternal() const { return fResource->isExternal(); }
+
+ /**
* If this resource can be used as a scratch resource this returns a valid scratch key.
* Otherwise it returns a key for which isNullScratch is true. The resource may currently be
* used as a uniquely keyed resource rather than scratch. Check isScratch().