blob: 8c3c3294f385987fa7ff3de49407aaea204f872e [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
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.com8a1c16f2008-12-17 15:59:43 +00008#ifndef SkDrawProcs_DEFINED
9#define SkDrawProcs_DEFINED
10
11#include "SkDraw.h"
12
13class SkBlitter;
14
15struct SkDraw1Glyph {
16 const SkDraw* fDraw;
17 SkBounder* fBounder;
18 const SkRegion* fClip;
19 SkBlitter* fBlitter;
20 SkGlyphCache* fCache;
21 SkIRect fClipBounds;
22
reed@android.comf2b98d62010-12-20 18:26:13 +000023 // 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.com8a1c16f2008-12-17 15:59:43 +000026
27 Proc init(const SkDraw* draw, SkBlitter* blitter, SkGlyphCache* cache);
28};
29
30struct SkDrawProcs {
31 SkDraw1Glyph::Proc fD1GProc;
32};
33
34#endif
35