aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBlitRow.h
blob: bb6a29b82985d3ab31f9124d964b75e09e8ad625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef SkBlitRow_DEFINED
#define SkBlitRow_DEFINED

#include "SkBitmap.h"
#include "SkColor.h"

class SkBlitRow {
public:
    enum {
        kGlobalAlpha_Flag   = 0x01,
        kSrcPixelAlpha_Flag = 0x02,
        kDither_Flag        = 0x04
    };

    typedef void (*Proc)(uint16_t* SK_RESTRICT dst,
                         const SkPMColor* SK_RESTRICT src,
                         int count, U8CPU alpha, int x, int y);

    static Proc Factory(unsigned flags, SkBitmap::Config);
};

#endif