expand SkShader's flag kConstInY to 16 and 32 variants, allowing a shader
authorreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 27 Aug 2009 19:28:37 +0000 (19:28 +0000)
committerreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 27 Aug 2009 19:28:37 +0000 (19:28 +0000)
commit3c9b2a4a0e4f57db23640e85959ee78b86634628
treeed5f297f3dbc1d4d6703846c11c2a4f0c5174b9d
parent2a4d1ff189ef8df14ec40499125b01f406cb442b
expand SkShader's flag kConstInY to 16 and 32 variants, allowing a shader
(like gradients) to support predithering. If they do, then they would suppress
kConstInY16, since they no longer are const.

The blitters now check for each flag separately, so we don't have to give up
const-in-Y in the 32bit case, since in that mode we don't care about dithering.

git-svn-id: http://skia.googlecode.com/svn/trunk@339 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkShader.h
samplecode/SampleDitherBitmap.cpp
src/core/SkBitmapProcShader.cpp
src/core/SkBlitter_RGB16.cpp
src/core/SkShader.cpp
src/effects/SkGradientShader.cpp