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

Unified Diff: src/opts/SkBitmapProcState_arm_neon.cpp

Issue 1021583002: extend neon table as well for gray8 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkBitmapProcState_arm_neon.cpp
diff --git a/src/opts/SkBitmapProcState_arm_neon.cpp b/src/opts/SkBitmapProcState_arm_neon.cpp
index 33b362712913d8390dc44321f4d0710a219c7328..08b83ea574c36d02d5cb868ea76a85f9a240aef9 100644
--- a/src/opts/SkBitmapProcState_arm_neon.cpp
+++ b/src/opts/SkBitmapProcState_arm_neon.cpp
@@ -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,
};
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698