1 #ifndef SkDrawProcs_DEFINED 2 #define SkDrawProcs_DEFINED 3 4 #include "SkDraw.h" 5 6 class SkBlitter; 7 8 struct SkDraw1Glyph { 9 const SkDraw* fDraw; 10 SkBounder* fBounder; 11 const SkRegion* fClip; 12 SkBlitter* fBlitter; 13 SkGlyphCache* fCache; 14 SkIRect fClipBounds; 15 16 // The fixed x,y have been pre-rounded (i.e. 1/2 has already been added), 17 // so the impls need just trunc down to an int 18 typedef void (*Proc)(const SkDraw1Glyph&, SkFixed x, SkFixed y, const SkGlyph&); 19 20 Proc init(const SkDraw* draw, SkBlitter* blitter, SkGlyphCache* cache); 21 }; 22 23 struct SkDrawProcs { 24 SkDraw1Glyph::Proc fD1GProc; 25 }; 26 27 #endif 28 29