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

Unified Diff: src/core/SkPaint.cpp

Issue 21949007: Remove operator== from SkPaint (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Static function Created 7 years, 4 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 | « include/core/SkPaint.h ('k') | src/views/animated/SkStaticTextView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPaint.cpp
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp
index 372e68051e76b90b62c0d9c1598cfd30d7ee882c..328836624c861844d54740a7c3f1a909af649984 100644
--- a/src/core/SkPaint.cpp
+++ b/src/core/SkPaint.cpp
@@ -161,15 +161,6 @@ SkPaint& SkPaint::operator=(const SkPaint& src) {
return *this;
}
-bool operator==(const SkPaint& a, const SkPaint& b) {
-#ifdef SK_BUILD_FOR_ANDROID
- //assumes that fGenerationID is the last field in the struct
- return !memcmp(&a, &b, SK_OFFSETOF(SkPaint, fGenerationID));
-#else
- return !memcmp(&a, &b, sizeof(a));
-#endif
-}
-
void SkPaint::reset() {
SkPaint init;
« no previous file with comments | « include/core/SkPaint.h ('k') | src/views/animated/SkStaticTextView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698