Index: trunk/include/ports/SkFontConfigInterface.h |
=================================================================== |
--- trunk/include/ports/SkFontConfigInterface.h (revision 8807) |
+++ trunk/include/ports/SkFontConfigInterface.h (working copy) |
@@ -49,11 +49,21 @@ |
fTTCIndex == other.fTTCIndex && |
fString == other.fString; |
} |
+ bool operator!=(const FontIdentity& other) const { |
+ return !(*this == other); |
+ } |
uint32_t fID; |
int32_t fTTCIndex; |
SkString fString; |
SkFontStyle fStyle; |
+ |
+ // If buffer is NULL, just return the number of bytes that would have |
+ // been written. Will pad contents to a multiple of 4. |
+ size_t writeToMemory(void* buffer = NULL) const; |
+ |
+ // Recreate from a flattened buffer, returning the number of bytes read. |
+ size_t readFromMemory(const void* buffer, size_t length); |
}; |
/** |