| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkBlitMask_DEFINED | 8 #ifndef SkBlitMask_DEFINED |
| 9 #define SkBlitMask_DEFINED | 9 #define SkBlitMask_DEFINED |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 * onto a row of dst colors. The RowFactory that returns this function ptr | 44 * onto a row of dst colors. The RowFactory that returns this function ptr |
| 45 * will have been told the formats for the mask and the dst. | 45 * will have been told the formats for the mask and the dst. |
| 46 */ | 46 */ |
| 47 typedef void (*RowProc)(void* dst, const void* mask, | 47 typedef void (*RowProc)(void* dst, const void* mask, |
| 48 const SkPMColor* src, int width); | 48 const SkPMColor* src, int width); |
| 49 | 49 |
| 50 /** | 50 /** |
| 51 * Public entry-point to return a blitmask ColorProc. | 51 * Public entry-point to return a blitmask ColorProc. |
| 52 * May return NULL if config or format are not supported. | 52 * May return NULL if config or format are not supported. |
| 53 */ | 53 */ |
| 54 static ColorProc ColorFactory(SkBitmap::Config, SkMask::Format, SkColor); | 54 static ColorProc ColorFactory(SkColorType, SkMask::Format, SkColor); |
| 55 | 55 |
| 56 /** | 56 /** |
| 57 * Return either platform specific optimized blitmask ColorProc, | 57 * Return either platform specific optimized blitmask ColorProc, |
| 58 * or NULL if no optimized routine is available. | 58 * or NULL if no optimized routine is available. |
| 59 */ | 59 */ |
| 60 static ColorProc PlatformColorProcs(SkBitmap::Config, SkMask::Format, SkColo
r); | 60 static ColorProc PlatformColorProcs(SkColorType, SkMask::Format, SkColor); |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * Public entry-point to return a blitcolor BlitLCD16RowProc. | 63 * Public entry-point to return a blitcolor BlitLCD16RowProc. |
| 64 */ | 64 */ |
| 65 static BlitLCD16RowProc BlitLCD16RowFactory(bool isOpaque); | 65 static BlitLCD16RowProc BlitLCD16RowFactory(bool isOpaque); |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 * Return either platform specific optimized blitcolor BlitLCD16RowProc, | 68 * Return either platform specific optimized blitcolor BlitLCD16RowProc, |
| 69 * or NULL if no optimized routine is available. | 69 * or NULL if no optimized routine is available. |
| 70 */ | 70 */ |
| 71 static BlitLCD16RowProc PlatformBlitRowProcs16(bool isOpaque); | 71 static BlitLCD16RowProc PlatformBlitRowProcs16(bool isOpaque); |
| 72 | 72 |
| 73 enum RowFlags { | 73 enum RowFlags { |
| 74 kSrcIsOpaque_RowFlag = 1 << 0 | 74 kSrcIsOpaque_RowFlag = 1 << 0 |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 /** | 77 /** |
| 78 * Public entry-point to return a blitmask RowProc. | 78 * Public entry-point to return a blitmask RowProc. |
| 79 * May return NULL if config or format are not supported. | 79 * May return NULL if config or format are not supported. |
| 80 */ | 80 */ |
| 81 static RowProc RowFactory(SkBitmap::Config, SkMask::Format, RowFlags); | 81 static RowProc RowFactory(SkColorType, SkMask::Format, RowFlags); |
| 82 | 82 |
| 83 /** | 83 /** |
| 84 * Return either platform specific optimized blitmask RowProc, | 84 * Return either platform specific optimized blitmask RowProc, |
| 85 * or NULL if no optimized routine is available. | 85 * or NULL if no optimized routine is available. |
| 86 */ | 86 */ |
| 87 static RowProc PlatformRowProcs(SkBitmap::Config, SkMask::Format, RowFlags); | 87 static RowProc PlatformRowProcs(SkColorType, SkMask::Format, RowFlags); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 #endif | 90 #endif |
| OLD | NEW |