From f55061fd8453e8d2b33f1f05060fc443deee3222 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Mon, 22 Apr 2013 18:48:45 +0000 Subject: check-point for linux fontmgr impl Review URL: https://codereview.chromium.org/14305007 git-svn-id: http://skia.googlecode.com/svn/trunk@8808 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/ports/SkFontConfigInterface.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/ports/SkFontConfigInterface.h') diff --git a/include/ports/SkFontConfigInterface.h b/include/ports/SkFontConfigInterface.h index 786c3468db..fb09242e84 100644 --- a/include/ports/SkFontConfigInterface.h +++ b/include/ports/SkFontConfigInterface.h @@ -49,11 +49,21 @@ public: 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); }; /** -- cgit v1.2.3