aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkScan.h
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2016-04-07 09:52:19 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-07 09:52:19 -0700
commit93dc33972cd6a418e84270298b856d2de08d9c1c (patch)
treef03332452116418ca5914d3affea44501f6fd8a9 /src/core/SkScan.h
parent70f1a6c64ecb891d77aee576bd045f8b4a03f2a3 (diff)
For *ToFixed, in debug mode, assert that the value is in range.
Use SkFloatPinToFixed in SkTwoPointConicalGradient.cpp because it is failing in DM. fmalita is working on replacing this code with the 4f version, so I'm not bothering to fix it. (The beginnings of a real fix are in https://codereview.chromium.org/1767163003, which I do not plan to commit.) BUG=skia:4632 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1824733002 Review URL: https://codereview.chromium.org/1824733002
Diffstat (limited to 'src/core/SkScan.h')
-rw-r--r--src/core/SkScan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkScan.h b/src/core/SkScan.h
index 4aa8e44399..2185e1ea08 100644
--- a/src/core/SkScan.h
+++ b/src/core/SkScan.h
@@ -93,7 +93,7 @@ static inline void XRect_set(SkXRect* xr, const SkIRect& src) {
}
/** Assign an SkXRect from a SkRect, by promoting the src rect's coordinates
- from SkScalar to SkFixed. Does not check for overflow if the src coordinates
+ from SkScalar to SkFixed. Behavior is undefined if the src coordinates
exceed 32K
*/
static inline void XRect_set(SkXRect* xr, const SkRect& src) {