New subclasses for both Gr and GrGL gradient effect classes.
authorrileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 19 Jul 2012 15:16:19 +0000 (15:16 +0000)
committerrileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 19 Jul 2012 15:16:19 +0000 (15:16 +0000)
commit22e57f991628451c02f970beea379ad632bb6a10
tree3ee085f36ca7ed82a4653748c35075cc35b02aa6
parentd4cf3664733b76467ccea7b0c68e2ebffca80058
New subclasses for both Gr and GrGL gradient effect classes.

This replaces GrSingleTextureEffect as the base for gradient effects (so we'll be able to do gradient effects without textures), and adds a base class to the GL gradient custom stage implementations (which will soon handle generating the appropriate code to pass colors in and lerp instead of using a cached texture for simpler gradient cases).

Also added a custom stage for linear gradients.
Review URL: https://codereview.appspot.com/6426049

git-svn-id: http://skia.googlecode.com/svn/trunk@4674 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkShader.h
src/effects/SkGradientShader.cpp
src/gpu/SkGpuDevice.cpp
src/gpu/effects/GrGradientEffects.cpp
src/gpu/effects/GrGradientEffects.h