diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-07-16 20:53:26 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-07-16 20:53:26 +0000 |
commit | 48534f96b9ccb747cecbdf3818bfbd3523a4d034 (patch) | |
tree | d3583e13c7c2cf4b343ccb74ded51c26c083b160 /src/core/SkBitmapProcState_shaderproc.h | |
parent | 9ce225772902ec909e4b9e00cd2a7a89fe925262 (diff) |
first cut at support for HW-specific blits/etc.
git-svn-id: http://skia.googlecode.com/svn/trunk@270 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkBitmapProcState_shaderproc.h')
-rw-r--r-- | src/core/SkBitmapProcState_shaderproc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkBitmapProcState_shaderproc.h b/src/core/SkBitmapProcState_shaderproc.h index 66a6627141..b0384e7506 100644 --- a/src/core/SkBitmapProcState_shaderproc.h +++ b/src/core/SkBitmapProcState_shaderproc.h @@ -17,9 +17,9 @@ static void SCALE_FILTER_NAME(const SkBitmapProcState& s, int x, int y, SkASSERT(count > 0 && colors != NULL); SkASSERT(s.fDoFilter); SkDEBUGCODE(CHECKSTATE(s);) - + PREAMBLE(s); - + const unsigned maxX = s.fBitmap->width() - 1; const SkFixed oneX = s.fFilterOneX; const SkFixed dx = s.fInvSx; @@ -46,7 +46,7 @@ static void SCALE_FILTER_NAME(const SkBitmapProcState& s, int x, int y, // now initialize fx fx = SkScalarToFixed(pt.fX) - (oneX >> 1); } - + do { unsigned subX = TILEX_LOW_BITS(fx, maxX); unsigned x0 = TILEX_PROCF(fx, maxX); @@ -58,7 +58,7 @@ static void SCALE_FILTER_NAME(const SkBitmapProcState& s, int x, int y, SRC_TO_FILTER(row1[x0]), SRC_TO_FILTER(row1[x1])); *colors++ = FILTER_TO_DST(c); - + fx += dx; } while (--count != 0); } |