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

Unified Diff: public/platform/WebExternalTextureMailbox.h

Issue 169933002: WebGL: Don't destroy mailbox textures in the destructor until they're released. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Define operator!= also Created 6 years, 8 months 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 | « Source/platform/graphics/gpu/DrawingBufferTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebExternalTextureMailbox.h
diff --git a/public/platform/WebExternalTextureMailbox.h b/public/platform/WebExternalTextureMailbox.h
index d8703c6a949158ba8711d5d6277168bea11fcae3..50f54c0123a9b00b960edde2a9e8ed65844aac6a 100644
--- a/public/platform/WebExternalTextureMailbox.h
+++ b/public/platform/WebExternalTextureMailbox.h
@@ -44,6 +44,16 @@ struct WebExternalTextureMailbox {
}
};
+inline bool operator==(const WebExternalTextureMailbox& a, const WebExternalTextureMailbox& b)
+{
+ return !memcmp(a.name, b.name, sizeof(a.name));
abarth-chromium 2014/04/24 14:59:06 We don't need to compare the syncPoint as well?
dshwang 2014/04/24 15:03:23 we don't need syncPoint comparison. The main purpo
danakj 2014/04/24 15:10:02 If you're not comparing every field, might I sugge
dshwang 2014/04/24 15:19:11 nameEquals() looks better. It's why I wait while d
+}
+
+inline bool operator!=(const WebExternalTextureMailbox& a, const WebExternalTextureMailbox& b)
+{
+ return !(a == b);
+}
+
} // namespace blink
#endif // WebExternalTextureMailbox_h
« no previous file with comments | « Source/platform/graphics/gpu/DrawingBufferTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698