diff options
Diffstat (limited to 'include/gpu/GrGpuResourceRef.h')
-rw-r--r-- | include/gpu/GrGpuResourceRef.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gpu/GrGpuResourceRef.h b/include/gpu/GrGpuResourceRef.h index 3742e25195..1f7d31be94 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: |