1 /* 2 * Copyright 2016 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef SkSpanProcs_DEFINED 9 #define SkSpanProcs_DEFINED 10 11 #include "SkPM4f.h" 12 13 struct SkImageInfo; 14 class SkPaint; 15 class SkPixmap; 16 struct SkPM4f; 17 18 typedef void (*SkLoadSpanProc)(const SkPixmap&, int x, int y, SkPM4f span[], int count); 19 typedef void (*SkFilterSpanProc)(const SkPaint& paint, SkPM4f span[], int count); 20 21 SkLoadSpanProc SkLoadSpanProc_Choose(const SkImageInfo&); 22 SkFilterSpanProc SkFilterSpanProc_Choose(const SkPaint&); 23 24 #endif 25