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

Side by Side Diff: trunk/src/core/SkFontStream.h

Issue 12465009: rewind at the start of each FontStream api (since we rewinding internally anyway) (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | trunk/src/core/SkFontStream.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkFontStream_DEFINED 8 #ifndef SkFontStream_DEFINED
9 #define SkFontStream_DEFINED 9 #define SkFontStream_DEFINED
10 10
11 class SkStream; 11 class SkStream;
12 12
13 #include "SkTypeface.h" 13 #include "SkTypeface.h"
14 14
15 class SkFontStream { 15 class SkFontStream {
16 public: 16 public:
17 /**
18 * Note: the stream is rewound initially, but is returned at an arbitrary
19 * read offset.
20 */
17 static int GetTableTags(SkStream*, SkFontTableTag tags[]); 21 static int GetTableTags(SkStream*, SkFontTableTag tags[]);
22
23 /**
24 * Note: the stream is rewound initially, but is returned at an arbitrary
25 * read offset.
26 */
18 static size_t GetTableData(SkStream*, SkFontTableTag tag, 27 static size_t GetTableData(SkStream*, SkFontTableTag tag,
19 size_t offset, size_t length, void* data); 28 size_t offset, size_t length, void* data);
20 }; 29 };
21 30
22 #endif 31 #endif
OLDNEW
« no previous file with comments | « no previous file | trunk/src/core/SkFontStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698