add shader flag kConstInY_Flag
authorreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 12 Jun 2009 21:27:03 +0000 (21:27 +0000)
committerreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 12 Jun 2009 21:27:03 +0000 (21:27 +0000)
commit5119bdb952025a30f115b9c6a187173956e55097
tree46636bc7cdf8f0142125f2b026c8fa3c5f68b22d
parentb2c5f2d2606930c4551d31a31921d87e0dd37cee
add shader flag kConstInY_Flag
this signals blitters that the shader will return the same results for a given
x value, independent of y. Useful inside blitRect(), where it can cache the
first call to shadeSpan() and reuse it on all subsequent scans. Works with
(non-rotated) linear-gradients, and Nx1 bitmaps.

git-svn-id: http://skia.googlecode.com/svn/trunk@214 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkColorShader.h
include/core/SkShader.h
samplecode/SampleTestGL.cpp
src/core/SkBitmapProcShader.cpp
src/core/SkBlitter.cpp
src/core/SkBlitter_RGB16.cpp
src/core/SkCoreBlitters.h
src/core/SkShader.cpp
src/effects/SkGradientShader.cpp
xcode/sampleapp/SampleApp.xcodeproj/project.pbxproj