diff options
author | rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-19 15:16:19 +0000 |
---|---|---|
committer | rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-19 15:16:19 +0000 |
commit | 22e57f991628451c02f970beea379ad632bb6a10 (patch) | |
tree | 3ee085f36ca7ed82a4653748c35075cc35b02aa6 /include | |
parent | d4cf3664733b76467ccea7b0c68e2ebffca80058 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkShader.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h index 435643e1d3..7108c34e45 100644 --- a/include/core/SkShader.h +++ b/include/core/SkShader.h @@ -222,8 +222,10 @@ public: // to first. // 1: radius of first circle // 2: the second radius minus the first radius + kLinear_BitmapType, //<! Access bitmap using local coords transformed + // by matrix. No extras - kLast_BitmapType = kTwoPointConical_BitmapType + kLast_BitmapType = kLinear_BitmapType }; /** Optional methods for shaders that can pretend to be a bitmap/texture to play along with opengl. Default just returns kNone_BitmapType and |