epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame^] | 1 | |
| 2 | /* |
| 3 | * Copyright 2011 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 8 | #ifndef SkDrawProcs_DEFINED |
| 9 | #define SkDrawProcs_DEFINED |
| 10 | |
| 11 | #include "SkDraw.h" |
| 12 | |
| 13 | class SkBlitter; |
| 14 | |
| 15 | struct SkDraw1Glyph { |
| 16 | const SkDraw* fDraw; |
| 17 | SkBounder* fBounder; |
| 18 | const SkRegion* fClip; |
| 19 | SkBlitter* fBlitter; |
| 20 | SkGlyphCache* fCache; |
| 21 | SkIRect fClipBounds; |
| 22 | |
reed@android.com | f2b98d6 | 2010-12-20 18:26:13 +0000 | [diff] [blame] | 23 | // The fixed x,y have been pre-rounded (i.e. 1/2 has already been added), |
| 24 | // so the impls need just trunc down to an int |
| 25 | typedef void (*Proc)(const SkDraw1Glyph&, SkFixed x, SkFixed y, const SkGlyph&); |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 26 | |
| 27 | Proc init(const SkDraw* draw, SkBlitter* blitter, SkGlyphCache* cache); |
| 28 | }; |
| 29 | |
| 30 | struct SkDrawProcs { |
| 31 | SkDraw1Glyph::Proc fD1GProc; |
| 32 | }; |
| 33 | |
| 34 | #endif |
| 35 | |