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

Side by Side Diff: src/opts/SkBlitMask_opts_arm.cpp

Issue 23719002: ARM Skia NEON patches - 16/17 - Blitmask (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address review comments Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 1
2 #include "SkColor.h"
3 #include "SkColorPriv.h"
2 #include "SkBlitMask.h" 4 #include "SkBlitMask.h"
5 #include "SkUtilsArm.h"
6 #include "SkBlitMask_opts_arm_neon.h"
mtklein 2013/11/26 14:44:01 Looks like this file is missing?
kevin.petit.not.used.account 2013/11/26 16:23:32 Done.
3 7
4 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkBitmap::Config dstConfig, 8 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkBitmap::Config dstConfig,
5 SkMask::Format maskFormat, 9 SkMask::Format maskFormat,
6 SkColor color) { 10 SkColor color) {
11 #if SK_ARM_NEON_IS_NONE
12 return NULL;
13 #else
14 #if SK_ARM_NEON_IS_DYNAMIC
15 if (!sk_cpu_arm_has_neon()) {
16 return NULL;
17 }
18 #endif
19 if ((SkBitmap::kARGB_8888_Config == dstConfig) &&
20 (SkMask::kA8_Format == maskFormat)) {
21
mtklein 2013/11/26 14:44:01 stray newline here
kevin.petit.not.used.account 2013/11/26 16:23:32 Done.
22 return D32_A8_Factory_neon(color);
23 }
24 #endif
25
26 // We don't need to handle the SkMask::kLCD16_Format case as the default
27 // LCD16 will call us through SkBlitMask::PlatformBlitRowProcs16()
28
7 return NULL; 29 return NULL;
8 } 30 }
9 31
10 SkBlitMask::BlitLCD16RowProc SkBlitMask::PlatformBlitRowProcs16(bool isOpaque) { 32 SkBlitMask::BlitLCD16RowProc SkBlitMask::PlatformBlitRowProcs16(bool isOpaque) {
11 return NULL; 33 if (isOpaque) {
34 return SK_ARM_NEON_WRAP(SkBlitLCD16OpaqueRow);
35 } else {
36 return SK_ARM_NEON_WRAP(SkBlitLCD16Row);
37 }
12 } 38 }
13 39
14 SkBlitMask::RowProc SkBlitMask::PlatformRowProcs(SkBitmap::Config dstConfig, 40 SkBlitMask::RowProc SkBlitMask::PlatformRowProcs(SkBitmap::Config dstConfig,
15 SkMask::Format maskFormat, 41 SkMask::Format maskFormat,
16 RowFlags flags) { 42 RowFlags flags) {
17 return NULL; 43 return NULL;
18 } 44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698