Index: src/gpu/GrNonAtomicRef.h |
diff --git a/src/gpu/GrNonAtomicRef.h b/src/gpu/GrNonAtomicRef.h |
index e1503bcf06e16936e463e79d243f3db7b1739203..c23637f467b05c811b063533d7c7bab83bed2a70 100644 |
--- a/src/gpu/GrNonAtomicRef.h |
+++ b/src/gpu/GrNonAtomicRef.h |
@@ -28,6 +28,8 @@ public: |
} |
#endif |
+ bool unique() const { return 1 == fRefCnt; } |
+ |
void ref() const { |
// Once the ref cnt reaches zero it should never be ref'ed again. |
SkASSERT(fRefCnt > 0); |