OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The Android Open Source Project | 2 * Copyright 2009 The Android Open Source Project |
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 | 8 |
9 #include "SkBitmapProcState.h" | 9 #include "SkBitmapProcState.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 "ldr r6, [%[table], r5, lsl #2] \n\t" // loa
d SkPMColor from colmap | 177 "ldr r6, [%[table], r5, lsl #2] \n\t" // loa
d SkPMColor from colmap |
178 "str r6, [%[colors]], #4 \n\t" // sto
re pixel, update ptr | 178 "str r6, [%[colors]], #4 \n\t" // sto
re pixel, update ptr |
179 "bne 3b \n\t" // loo
p if counter != 0 | 179 "bne 3b \n\t" // loo
p if counter != 0 |
180 "4: \n\t" //
exit | 180 "4: \n\t" //
exit |
181 : [xx] "+r" (xx), [count] "+r" (count), [colors] "+r" (col
ors) | 181 : [xx] "+r" (xx), [count] "+r" (count), [colors] "+r" (col
ors) |
182 : [table] "r" (table), [srcAddr] "r" (srcAddr) | 182 : [table] "r" (table), [srcAddr] "r" (srcAddr) |
183 : "memory", "cc", "r4", "r5", "r6", "r7", "r8", "r9", "r10
", "r11" | 183 : "memory", "cc", "r4", "r5", "r6", "r7", "r8", "r9", "r10
", "r11" |
184 ); | 184 ); |
185 } | 185 } |
186 | 186 |
187 s.fBitmap->getColorTable()->unlockColors(false); | 187 s.fBitmap->getColorTable()->unlockColors(); |
188 } | 188 } |
189 #endif // SK_ARM_ARCH >= 6 && !defined(SK_CPU_BENDIAN) | 189 #endif // SK_ARM_ARCH >= 6 && !defined(SK_CPU_BENDIAN) |
190 | 190 |
191 /////////////////////////////////////////////////////////////////////////////// | 191 /////////////////////////////////////////////////////////////////////////////// |
192 | 192 |
193 /* If we replace a sampleproc, then we null-out the associated shaderproc, | 193 /* If we replace a sampleproc, then we null-out the associated shaderproc, |
194 otherwise the shader won't even look at the matrix/sampler | 194 otherwise the shader won't even look at the matrix/sampler |
195 */ | 195 */ |
196 void SkBitmapProcState::platformProcs() { | 196 void SkBitmapProcState::platformProcs() { |
197 bool isOpaque = 256 == fAlphaScale; | 197 bool isOpaque = 256 == fAlphaScale; |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 // to operate on four rows at once, which is correct but not performance
-optimal. | 413 // to operate on four rows at once, which is correct but not performance
-optimal. |
414 | 414 |
415 // procs->fConvolve4RowsHorizontally = &convolve4RowsHorizontally_arm; | 415 // procs->fConvolve4RowsHorizontally = &convolve4RowsHorizontally_arm; |
416 | 416 |
417 procs->fConvolve4RowsHorizontally = NULL; | 417 procs->fConvolve4RowsHorizontally = NULL; |
418 | 418 |
419 procs->fConvolveHorizontally = &convolveHorizontally_arm; | 419 procs->fConvolveHorizontally = &convolveHorizontally_arm; |
420 procs->fApplySIMDPadding = &applySIMDPadding_arm; | 420 procs->fApplySIMDPadding = &applySIMDPadding_arm; |
421 } | 421 } |
422 } | 422 } |
OLD | NEW |