Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/core/SkBlitMask.h

Issue 1278253003: Sk4px blit mask. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: note overflow Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/Sk4px.h ('k') | src/core/SkBlitMask_D32.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 41
42 /** 42 /**
43 * Function pointer that blits a row of src colors through a row of a mask 43 * Function pointer that blits a row of src colors through a row of a mask
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.
52 * May return NULL if config or format are not supported.
53 */
54 static ColorProc ColorFactory(SkColorType, SkMask::Format, SkColor);
55
56 /**
57 * Return either platform specific optimized blitmask ColorProc,
58 * or NULL if no optimized routine is available.
59 */
60 static ColorProc PlatformColorProcs(SkColorType, SkMask::Format, SkColor);
61
62 /**
63 * Public entry-point to return a blitcolor BlitLCD16RowProc. 51 * Public entry-point to return a blitcolor BlitLCD16RowProc.
64 */ 52 */
65 static BlitLCD16RowProc BlitLCD16RowFactory(bool isOpaque); 53 static BlitLCD16RowProc BlitLCD16RowFactory(bool isOpaque);
66 54
67 /** 55 /**
68 * Return either platform specific optimized blitcolor BlitLCD16RowProc, 56 * Return either platform specific optimized blitcolor BlitLCD16RowProc,
69 * or NULL if no optimized routine is available. 57 * or NULL if no optimized routine is available.
70 */ 58 */
71 static BlitLCD16RowProc PlatformBlitRowProcs16(bool isOpaque); 59 static BlitLCD16RowProc PlatformBlitRowProcs16(bool isOpaque);
72 60
73 enum RowFlags { 61 enum RowFlags {
74 kSrcIsOpaque_RowFlag = 1 << 0 62 kSrcIsOpaque_RowFlag = 1 << 0
75 }; 63 };
76 64
77 /** 65 /**
78 * Public entry-point to return a blitmask RowProc. 66 * Public entry-point to return a blitmask RowProc.
79 * May return NULL if config or format are not supported. 67 * May return NULL if config or format are not supported.
80 */ 68 */
81 static RowProc RowFactory(SkColorType, SkMask::Format, RowFlags); 69 static RowProc RowFactory(SkColorType, SkMask::Format, RowFlags);
82 70
83 /** 71 /**
84 * Return either platform specific optimized blitmask RowProc, 72 * Return either platform specific optimized blitmask RowProc,
85 * or NULL if no optimized routine is available. 73 * or NULL if no optimized routine is available.
86 */ 74 */
87 static RowProc PlatformRowProcs(SkColorType, SkMask::Format, RowFlags); 75 static RowProc PlatformRowProcs(SkColorType, SkMask::Format, RowFlags);
88 }; 76 };
89 77
90 #endif 78 #endif
OLDNEW
« no previous file with comments | « src/core/Sk4px.h ('k') | src/core/SkBlitMask_D32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698