aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrGpuResourceRef.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-11-10 04:55:08 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-10 04:55:08 -0800
commitd9ffaed6d21f85c717117904da26a2bac2295607 (patch)
tree2aff28ba2cdc4af9103bb35c88aef4be9741fdaa /include/gpu/GrGpuResourceRef.h
parent14184d5567b58085b6d8a6375796d405056f7f73 (diff)
apply mozilla patch
Diffstat (limited to 'include/gpu/GrGpuResourceRef.h')
-rw-r--r--include/gpu/GrGpuResourceRef.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gpu/GrGpuResourceRef.h b/include/gpu/GrGpuResourceRef.h
index 70d2568784..4511adce68 100644
--- a/include/gpu/GrGpuResourceRef.h
+++ b/include/gpu/GrGpuResourceRef.h
@@ -182,7 +182,11 @@ public:
this->release();
}
- operator bool() const { return SkToBool(fResource); }
+ explicit operator bool() const { return SkToBool(fResource); }
+
+ bool operator==(const GrPendingIOResource& other) const {
+ return fResource == other.fResource;
+ }
T* get() const { return fResource; }