Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Unified Diff: include/gpu/GrGpuResourceRef.h

Issue 1421793009: apply mozilla patch for skbug.com/4547 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrGpuResourceRef.h
diff --git a/include/gpu/GrGpuResourceRef.h b/include/gpu/GrGpuResourceRef.h
index 70d25687846252e38aaec0eba6a9b171e85b9f09..4511adce6823523a69e25d3fd25233285dff66d6 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); }
bungeman-skia 2015/11/10 17:20:01 Explicit operator bool has issues in VS2013, which
+
+ bool operator==(const GrPendingIOResource& other) const {
+ return fResource == other.fResource;
+ }
T* get() const { return fResource; }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698