apply mozilla patch

BUG=skia:4547

Review URL: https://codereview.chromium.org/1421793009
This commit is contained in:
reed 2015-11-10 04:55:08 -08:00 committed by Commit bot
parent 14184d5567
commit d9ffaed6d2

View File

@ -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; }