summaryrefslogtreecommitdiff
path: root/chromium/third_party/skia/include/effects/SkGradientShader.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/include/effects/SkGradientShader.h')
-rw-r--r--chromium/third_party/skia/include/effects/SkGradientShader.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium/third_party/skia/include/effects/SkGradientShader.h b/chromium/third_party/skia/include/effects/SkGradientShader.h
index 13a3e234d00..2655a2b62d1 100644
--- a/chromium/third_party/skia/include/effects/SkGradientShader.h
+++ b/chromium/third_party/skia/include/effects/SkGradientShader.h
@@ -188,6 +188,14 @@ public:
int count, SkTileMode mode);
/** Returns a shader that generates a sweep gradient given a center.
+
+ The shader accepts negative angles and angles larger than 360, draws
+ between 0 and 360 degrees, similar to the CSS conic-gradient
+ semantics. 0 degrees means horizontal positive x axis. The start angle
+ must be less than the end angle, otherwise a null pointer is
+ returned. If color stops do not contain 0 and 1 but are within this
+ range, the respective outer color stop is repeated for 0 and 1. Color
+ stops less than 0 are clamped to 0, and greater than 1 are clamped to 1.
<p />
@param cx The X coordinate of the center of the sweep
@param cx The Y coordinate of the center of the sweep
@@ -220,6 +228,14 @@ public:
}
/** Returns a shader that generates a sweep gradient given a center.
+
+ The shader accepts negative angles and angles larger than 360, draws
+ between 0 and 360 degrees, similar to the CSS conic-gradient
+ semantics. 0 degrees means horizontal positive x axis. The start angle
+ must be less than the end angle, otherwise a null pointer is
+ returned. If color stops do not contain 0 and 1 but are within this
+ range, the respective outer color stop is repeated for 0 and 1. Color
+ stops less than 0 are clamped to 0, and greater than 1 are clamped to 1.
<p />
@param cx The X coordinate of the center of the sweep
@param cx The Y coordinate of the center of the sweep