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

Unified Diff: trunk/include/ports/SkFontConfigInterface.h

Issue 14305007: check-point for linux fontmgr impl (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: Created 7 years, 8 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 | « no previous file | trunk/include/ports/SkFontStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
/**
« no previous file with comments | « no previous file | trunk/include/ports/SkFontStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698