aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkScan.h
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@google.com>2016-04-07 19:27:45 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-07 19:27:45 -0700
commite7365065acfe1fc6abbeb248fd5cc0ca83d9d341 (patch)
tree20ed94bc0a050828482762a3ef0035e410aee49b /src/core/SkScan.h
parente2e71c2df4e72e897bbe745752be0444aee5c29f (diff)
Revert of For *ToFixed, in debug mode, assert that the value is in range. (patchset #6 id:140001 of https://codereview.chromium.org/1824733002/ )
Reason for revert: Asserts in Blink rolls: https://storage.googleapis.com/chromium-layout-test-archives/linux_blink_rel/84520/layout-test-results/results.html STDERR: [1:1:0407/120919:1455366829:INFO:SkFixed.h(88)] ../../third_party/skia/include/private/SkFixed.h:88: fatal error: ""truncf(x * (1 << 16)) == static_cast<float> Original issue's description: > 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 > > Committed: https://skia.googlesource.com/skia/+/93dc33972cd6a418e84270298b856d2de08d9c1c TBR=mtklein@google.com,reed@google.com,benjaminwagner@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia:4632 Review URL: https://codereview.chromium.org/1868933004
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 2185e1ea08..4aa8e44399 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. Behavior is undefined if the src coordinates
+ from SkScalar to SkFixed. Does not check for overflow if the src coordinates
exceed 32K
*/
static inline void XRect_set(SkXRect* xr, const SkRect& src) {