aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkFontStream.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-05 20:50:47 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-05 20:50:47 +0000
commit90ee4488e9c6b8ec4cb1137250fed43b5919ce2c (patch)
treeadef686be82924a30e3114a8035596b7d1472cd8 /src/core/SkFontStream.h
parent66a58aca8379a33ccc7572a31c74a3334d08b47c (diff)
rewind at the start of each FontStream api (since we rewinding internally anyway)
Review URL: https://codereview.chromium.org/12465009 git-svn-id: http://skia.googlecode.com/svn/trunk@7997 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkFontStream.h')
-rw-r--r--src/core/SkFontStream.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/SkFontStream.h b/src/core/SkFontStream.h
index 5324df372b..283aee077f 100644
--- a/src/core/SkFontStream.h
+++ b/src/core/SkFontStream.h
@@ -14,7 +14,16 @@ class SkStream;
class SkFontStream {
public:
+ /**
+ * Note: the stream is rewound initially, but is returned at an arbitrary
+ * read offset.
+ */
static int GetTableTags(SkStream*, SkFontTableTag tags[]);
+
+ /**
+ * Note: the stream is rewound initially, but is returned at an arbitrary
+ * read offset.
+ */
static size_t GetTableData(SkStream*, SkFontTableTag tag,
size_t offset, size_t length, void* data);
};