aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-09-27 03:33:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-27 03:33:12 -0700
commita99b66d95b4df64d20b6a9cf78106b472a68b1dc (patch)
tree190964c4b98608b3f6c96649ba00f57bf557837c
parente78d4872cf2a0914752cdc99c4ec4a499cfd4e2c (diff)
Remove outdated comments about pre-sk_sp semantics
-rw-r--r--include/effects/SkGradientShader.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/effects/SkGradientShader.h b/include/effects/SkGradientShader.h
index e474f38a4e..6b86f441eb 100644
--- a/include/effects/SkGradientShader.h
+++ b/include/effects/SkGradientShader.h
@@ -26,13 +26,9 @@ public:
kInterpolateColorsInPremul_Flag = 1 << 0,
};
- /** Returns a shader that generates a linear gradient between the two
- specified points.
+ /** Returns a shader that generates a linear gradient between the two specified points.
<p />
- CreateLinear 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 count to be < 2.
- @param pts The start and end points for the gradient.
+ @param pts The start and end points for the gradient.
@param colors The array[count] of colors, to be distributed between the two points
@param pos May be NULL. array[count] of SkScalars, or NULL, of the relative position of
each corresponding color in the colors array. If this is NULL,
@@ -54,9 +50,6 @@ public:
/** Returns a shader that generates a radial gradient given the center and radius.
<p />
- CreateRadial 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, or for radius to be <= 0.
@param center The center of the circle for this gradient
@param radius Must be positive. The radius of the circle for this gradient
@param colors The array[count] of colors, to be distributed between the center and edge of the circle
@@ -99,9 +92,6 @@ public:
/** Returns a shader that generates a sweep gradient given a center.
<p />
- CreateSweep 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.
@param cx The X coordinate of the center of the sweep
@param cx The Y coordinate of the center of the sweep
@param colors The array[count] of colors, to be distributed around the center.