aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/SkBlitRow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkBlitRow.h')
-rw-r--r--src/core/SkBlitRow.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/SkBlitRow.h b/src/core/SkBlitRow.h
new file mode 100644
index 0000000..bb6a29b
--- /dev/null
+++ b/src/core/SkBlitRow.h
@@ -0,0 +1,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