diff options
author | 2015-11-10 04:55:08 -0800 | |
---|---|---|
committer | 2015-11-10 04:55:08 -0800 | |
commit | d9ffaed6d21f85c717117904da26a2bac2295607 (patch) | |
tree | 2aff28ba2cdc4af9103bb35c88aef4be9741fdaa /include/gpu/GrGpuResourceRef.h | |
parent | 14184d5567b58085b6d8a6375796d405056f7f73 (diff) |
apply mozilla patch
BUG=skia:4547
Review URL: https://codereview.chromium.org/1421793009
Diffstat (limited to 'include/gpu/GrGpuResourceRef.h')
-rw-r--r-- | include/gpu/GrGpuResourceRef.h | 6 |
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; } |