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

Unified Diff: trunk/include/core/SkTypeface.h

Issue 12706010: Add SkTypeface* parameter to SkScalerContext (and its callers) (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 side-by-side diff with in-line comments
Download patch
Index: trunk/include/core/SkTypeface.h
===================================================================
--- trunk/include/core/SkTypeface.h (revision 8166)
+++ trunk/include/core/SkTypeface.h (working copy)
@@ -193,7 +193,10 @@
*/
int getUnitsPerEm() const;
+ // Do we *have* to make these public :(
+ //
SkStream* openStream(int* ttcIndex) const;
+ SkScalerContext* createScalerContext(const SkDescriptor* desc);
bungeman-skia 2013/03/15 16:12:44 I agree about not making this one public, for sure
protected:
/** uniqueID must be unique and non-zero
@@ -204,12 +207,13 @@
friend class SkScalerContext;
static SkTypeface* GetDefaultTypeface();
+ virtual SkScalerContext* onCreateScalerContext(const SkDescriptor*) const = 0;
bungeman-skia 2013/03/15 16:12:44 It seems implementations can return NULL, should w
reed1 2013/03/15 17:46:44 Done.
+ virtual void onFilterRec(SkScalerContextRec*) const = 0;
+
virtual int onGetUPEM() const;
virtual int onGetTableTags(SkFontTableTag tags[]) const;
virtual size_t onGetTableData(SkFontTableTag, size_t offset,
size_t length, void* data) const;
- virtual SkScalerContext* onCreateScalerContext(const SkDescriptor*) const;
- virtual void onFilterRec(SkScalerContextRec*) const;
virtual void onGetFontDescriptor(SkFontDescriptor*) const;
private:

Powered by Google App Engine
This is Rietveld 408576698