diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-09-23 15:06:10 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-09-23 15:06:10 +0000 |
commit | c4cae85752e3e486cf4eac8cd8128f57b6f40563 (patch) | |
tree | 88e32782e35ec5cfb18dafe5f84e76752b54d6b6 /src/core/SkBlitRow_D16.cpp | |
parent | 9186103dfdb7dfe32803ffad7c3caf1d739a226d (diff) |
add BlitRow procs for 32->32, to allow for neon and other optimizations.
call these new procs in (nearly) all the places we had inlined loops before.
In once instance (blitter_argb32::blitAntiH) we get different results by a
tiny bit. The new code is more accurate, and exactly inline with all of the
other like-minded blits, so I think the change is good going forward.
git-svn-id: http://skia.googlecode.com/svn/trunk@366 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkBlitRow_D16.cpp')
-rw-r--r-- | src/core/SkBlitRow_D16.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkBlitRow_D16.cpp b/src/core/SkBlitRow_D16.cpp index 1860d3bf9a..66ac90e29a 100644 --- a/src/core/SkBlitRow_D16.cpp +++ b/src/core/SkBlitRow_D16.cpp @@ -235,6 +235,8 @@ extern SkBlitRow::Proc SkBlitRow_Factory_4444(unsigned flags); SkBlitRow::Proc SkBlitRow::Factory(unsigned flags, SkBitmap::Config config) { SkASSERT(flags < SK_ARRAY_COUNT(gDefault_565_Procs)); + // just so we don't crash + flags &= kFlags16_Mask; SkBlitRow::Proc proc = NULL; |