aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ports/SkFontConfigInterface.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-22 18:48:45 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-22 18:48:45 +0000
commitf55061fd8453e8d2b33f1f05060fc443deee3222 (patch)
treecc80e6cd9d3283decf83e627f4199de47f05a40d /include/ports/SkFontConfigInterface.h
parent750a24bb3d39e59d32db3f166ad3f39c7560c0a9 (diff)
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
Diffstat (limited to 'include/ports/SkFontConfigInterface.h')
-rw-r--r--include/ports/SkFontConfigInterface.h10
1 files changed, 10 insertions, 0 deletions
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);
};
/**