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

Unified Diff: src/core/SkScalerContext.h

Issue 12593013: remove SkFontHost::CreateScalerContext (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
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
« no previous file with comments | « include/core/SkTypeface.h ('k') | src/core/SkScalerContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScalerContext.h
===================================================================
--- src/core/SkScalerContext.h (revision 8224)
+++ src/core/SkScalerContext.h (working copy)
@@ -12,12 +12,8 @@
#include "SkMaskGamma.h"
#include "SkMatrix.h"
#include "SkPaint.h"
+#include "SkTypeface.h"
-#ifdef SK_BUILD_FOR_ANDROID
- //For SkFontID
- #include "SkTypeface.h"
-#endif
-
struct SkGlyph;
class SkDescriptor;
class SkMaskFilter;
@@ -149,9 +145,11 @@
};
- SkScalerContext(const SkDescriptor* desc);
+ SkScalerContext(SkTypeface*, const SkDescriptor*);
virtual ~SkScalerContext();
+ SkTypeface* getTypeface() const { return fTypeface.get(); }
+
SkMask::Format getMaskFormat() const {
return (SkMask::Format)fRec.fMaskFormat;
}
@@ -217,6 +215,10 @@
void forceGenerateImageFromPath() { fGenerateImageFromPath = true; }
private:
+ // never null
+ SkAutoTUnref<SkTypeface> fTypeface;
+
+ // optional object, which may be null
SkPathEffect* fPathEffect;
SkMaskFilter* fMaskFilter;
SkRasterizer* fRasterizer;
« no previous file with comments | « include/core/SkTypeface.h ('k') | src/core/SkScalerContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698