extend neon table as well for gray8
authorreed <reed@chromium.org>
Wed, 18 Mar 2015 18:52:35 +0000 (11:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 18 Mar 2015 18:52:35 +0000 (11:52 -0700)
BUG=skia:

Review URL: https://codereview.chromium.org/1021583002

src/opts/SkBitmapProcState_arm_neon.cpp

index 33b362712913d8390dc44321f4d0710a219c7328..08b83ea574c36d02d5cb868ea76a85f9a240aef9 100644 (file)
@@ -66,7 +66,17 @@ const SkBitmapProcState::SampleProc32 gSkBitmapProcStateSample32_neon[] = {
     SA8_alpha_D32_filter_DXDY_neon,
     SA8_alpha_D32_filter_DXDY_neon,
     SA8_alpha_D32_filter_DX_neon,
-    SA8_alpha_D32_filter_DX_neon
+    SA8_alpha_D32_filter_DX_neon,
+
+    // todo: possibly specialize on opaqueness
+    SG8_alpha_D32_nofilter_DXDY_neon,
+    SG8_alpha_D32_nofilter_DXDY_neon,
+    SG8_alpha_D32_nofilter_DX_neon,
+    SG8_alpha_D32_nofilter_DX_neon,
+    SG8_alpha_D32_filter_DXDY_neon,
+    SG8_alpha_D32_filter_DXDY_neon,
+    SG8_alpha_D32_filter_DX_neon,
+    SG8_alpha_D32_filter_DX_neon,
 };
 
 const SkBitmapProcState::SampleProc16 gSkBitmapProcStateSample16_neon[] = {
@@ -88,7 +98,9 @@ const SkBitmapProcState::SampleProc16 gSkBitmapProcStateSample16_neon[] = {
     // Don't support 4444 -> 565
     NULL, NULL, NULL, NULL,
     // Don't support A8 -> 565
-    NULL, NULL, NULL, NULL
+    NULL, NULL, NULL, NULL,
+    // Don't support G8 -> 565 (but we could)
+    NULL, NULL, NULL, NULL,
 };
 
 ///////////////////////////////////////////////////////////////////////////////