We don't flatten or unflatten SkPaintOptionsAndroid. Reproduce and fix.
BUG=skia:1625
R=djsollen@google.com, reed@google.com
Author: mtklein@google.com
Review URL: https://chromiumcodereview.appspot.com/24075010
git-svn-id: http://skia.googlecode.com/svn/trunk/include@11472 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/core/SkPaintOptionsAndroid.h b/core/SkPaintOptionsAndroid.h
index 1bb29f4..f49345f 100644
--- a/core/SkPaintOptionsAndroid.h
+++ b/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 @@
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 @@
bool fUseFontFallbacks;
};
-#endif // #ifdef SK_BUILD_FOR_ANDROID
#endif // #ifndef SkPaintOptionsAndroid_DEFINED