| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 blitcolor BlitLCD16RowProc. | 51 * Public entry-point to return a blitcolor BlitLCD16RowProc. |
| 52 */ | 52 */ |
| 53 static BlitLCD16RowProc BlitLCD16RowFactory(bool isOpaque); | 53 static BlitLCD16RowProc BlitLCD16RowFactory(bool isOpaque); |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * Return either platform specific optimized blitcolor BlitLCD16RowProc, | 56 * Return either platform specific optimized blitcolor BlitLCD16RowProc, |
| 57 * or NULL if no optimized routine is available. | 57 * or nullptr if no optimized routine is available. |
| 58 */ | 58 */ |
| 59 static BlitLCD16RowProc PlatformBlitRowProcs16(bool isOpaque); | 59 static BlitLCD16RowProc PlatformBlitRowProcs16(bool isOpaque); |
| 60 | 60 |
| 61 enum RowFlags { | 61 enum RowFlags { |
| 62 kSrcIsOpaque_RowFlag = 1 << 0 | 62 kSrcIsOpaque_RowFlag = 1 << 0 |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 /** | 65 /** |
| 66 * Public entry-point to return a blitmask RowProc. | 66 * Public entry-point to return a blitmask RowProc. |
| 67 * May return NULL if config or format are not supported. | 67 * May return nullptr if config or format are not supported. |
| 68 */ | 68 */ |
| 69 static RowProc RowFactory(SkColorType, SkMask::Format, RowFlags); | 69 static RowProc RowFactory(SkColorType, SkMask::Format, RowFlags); |
| 70 | 70 |
| 71 /** | 71 /** |
| 72 * Return either platform specific optimized blitmask RowProc, | 72 * Return either platform specific optimized blitmask RowProc, |
| 73 * or NULL if no optimized routine is available. | 73 * or nullptr if no optimized routine is available. |
| 74 */ | 74 */ |
| 75 static RowProc PlatformRowProcs(SkColorType, SkMask::Format, RowFlags); | 75 static RowProc PlatformRowProcs(SkColorType, SkMask::Format, RowFlags); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif | 78 #endif |
| OLD | NEW |