Index: include/gpu/GrGpuResourceRef.h |
diff --git a/include/gpu/GrGpuResourceRef.h b/include/gpu/GrGpuResourceRef.h |
index 3742e2519519dfaafaf251ca38fe2a553a7e44fc..1f7d31be9443df0be9342f0815d93d62100ab5c6 100644 |
--- a/include/gpu/GrGpuResourceRef.h |
+++ b/include/gpu/GrGpuResourceRef.h |
@@ -186,6 +186,8 @@ public: |
this->release(); |
} |
+ operator bool() const { return SkToBool(fResource); } |
+ |
T* get() const { return fResource; } |
private: |