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

Unified Diff: include/core/SkPaintOptionsAndroid.h

Issue 24075010: We don't flatten or unflatten SkPaintOptionsAndroid. Reproduce and fix. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: sync to head Created 7 years, 3 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 | « gyp/tests.gyp ('k') | src/core/SkPaint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPaintOptionsAndroid.h
diff --git a/include/core/SkPaintOptionsAndroid.h b/include/core/SkPaintOptionsAndroid.h
index 1bb29f4760486650592480fa8b5558d862ac1b9b..f49345f12ba6bf13057d2fd55ad3a0f6cdfd50b5 100644
--- a/include/core/SkPaintOptionsAndroid.h
+++ b/include/core/SkPaintOptionsAndroid.h
@@ -13,8 +13,6 @@
#include "SkTypes.h"
#include "SkString.h"
-#ifdef SK_BUILD_FOR_ANDROID
-
class SkFlattenableReadBuffer;
class SkFlattenableWriteBuffer;
@@ -72,6 +70,10 @@ public:
return *this;
}
+ bool operator==(const SkPaintOptionsAndroid& b) const {
+ return !(*this != b);
+ }
+
bool operator!=(const SkPaintOptionsAndroid& b) const {
return fLanguage != b.fLanguage ||
fFontVariant != b.fFontVariant ||
@@ -125,5 +127,4 @@ private:
bool fUseFontFallbacks;
};
-#endif // #ifdef SK_BUILD_FOR_ANDROID
#endif // #ifndef SkPaintOptionsAndroid_DEFINED
« no previous file with comments | « gyp/tests.gyp ('k') | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698