diff options
author | reed <reed@google.com> | 2015-05-04 08:32:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-04 08:32:51 -0700 |
commit | 71a6cbfc585959738dc0b375603696ca7f60605f (patch) | |
tree | 308b974c044f356dbc0e0b6599e0be275f5b4f94 /include/effects/SkGradientShader.h | |
parent | f603fb3d0e5fa57c3f228d66945bef198b001135 (diff) |
remove redundant/deprecated TwoPointRadial gradiet -- use TwoPointConical
This CL derived from https://codereview.chromium.org/1114243005/
BUG=skia:
Review URL: https://codereview.chromium.org/1117423003
Diffstat (limited to 'include/effects/SkGradientShader.h')
-rw-r--r-- | include/effects/SkGradientShader.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/include/effects/SkGradientShader.h b/include/effects/SkGradientShader.h index a5b4f29b76..ae11e2dafd 100644 --- a/include/effects/SkGradientShader.h +++ b/include/effects/SkGradientShader.h @@ -80,39 +80,6 @@ public: return CreateRadial(center, radius, colors, pos, count, mode, 0, NULL); } - /** Returns a shader that generates a radial gradient given the start position, start radius, end position and end radius. - <p /> - CreateTwoPointRadial returns a shader with a reference count of 1. - The caller should decrement the shader's reference count when done with the shader. - It is an error for colorCount to be < 2, for startRadius or endRadius to be < 0, or for - startRadius to be equal to endRadius. - @param start The center of the start circle for this gradient - @param startRadius Must be positive. The radius of the start circle for this gradient. - @param end The center of the end circle for this gradient - @param endRadius Must be positive. The radius of the end circle for this gradient. - @param colors The array[count] of colors, to be distributed between the center and edge of the circle - @param pos May be NULL. The array[count] of SkScalars, or NULL, of the relative position of - each corresponding color in the colors array. If this is NULL, - the the colors are distributed evenly between the center and edge of the circle. - If this is not null, the values must begin with 0, end with 1.0, and - intermediate values must be strictly increasing. - @param count Must be >= 2. The number of colors (and pos if not NULL) entries - @param mode The tiling mode - */ - static SkShader* CreateTwoPointRadial(const SkPoint& start, SkScalar startRadius, - const SkPoint& end, SkScalar endRadius, - const SkColor colors[], const SkScalar pos[], int count, - SkShader::TileMode mode, - uint32_t flags, const SkMatrix* localMatrix); - - static SkShader* CreateTwoPointRadial(const SkPoint& start, SkScalar startRadius, - const SkPoint& end, SkScalar endRadius, - const SkColor colors[], const SkScalar pos[], int count, - SkShader::TileMode mode) { - return CreateTwoPointRadial(start, startRadius, end, endRadius, colors, pos, count, mode, - 0, NULL); - } - /** * Returns a shader that generates a conical gradient given two circles, or * returns NULL if the inputs are invalid. The gradient interprets the |