aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkComposeShader.cpp
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-09-23 15:06:10 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-09-23 15:06:10 +0000
commitc4cae85752e3e486cf4eac8cd8128f57b6f40563 (patch)
tree88e32782e35ec5cfb18dafe5f84e76752b54d6b6 /src/core/SkComposeShader.cpp
parent9186103dfdb7dfe32803ffad7c3caf1d739a226d (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/SkComposeShader.cpp')
-rw-r--r--src/core/SkComposeShader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkComposeShader.cpp b/src/core/SkComposeShader.cpp
index 1e5e202b8e..7e566a3d2e 100644
--- a/src/core/SkComposeShader.cpp
+++ b/src/core/SkComposeShader.cpp
@@ -124,6 +124,8 @@ void SkComposeShader::shadeSpan(int x, int y, SkPMColor result[], int count)
if (NULL == mode) // implied SRC_OVER
{
+ // TODO: when we have a good test-case, should use SkBlitRow::Proc32
+ // for these loops
do {
int n = count;
if (n > TMP_COLOR_COUNT)