788b91678f
Use std::min and std::max everywhere. SkTPin still exists. We can't use std::clamp yet, and even when we can, it has undefined behavior with NaN. SkTPin is written to ensure that we return a value in the [lo, hi] range. Change-Id: I506852a36e024ae405358d5078a872e2c77fa71e Docs-Preview: https://skia.org/?cl=269357 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/269357 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Mike Reed <reed@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> |
||
---|---|---|
.. | ||
catalog.htm | ||
index.md | ||
METADATA | ||
SkAutoCanvasRestore_Reference.md | ||
SkBitmap_Reference.md | ||
SkBlendMode_Overview.md | ||
SkBlendMode_Reference.md | ||
skcanvas_creation.md | ||
skcanvas_overview.md | ||
SkCanvas_Reference.md | ||
SkColor4f_Reference.md | ||
SkColor_Reference.md | ||
SkFont_Reference.md | ||
SkImage_Reference.md | ||
SkImageInfo_Reference.md | ||
SkIPoint_Reference.md | ||
SkIRect_Reference.md | ||
SkMatrix_Reference.md | ||
skpaint_overview.md | ||
SkPaint_Reference.md | ||
SkPath_Overview.md | ||
SkPath_Reference.md | ||
SkPicture_Reference.md | ||
SkPixmap_Reference.md | ||
SkPoint_Reference.md | ||
SkRect_Reference.md | ||
SkRegion_Reference.md | ||
SkRRect_Reference.md | ||
SkSurface_Reference.md | ||
SkTextBlob_Reference.md | ||
SkTextBlobBuilder_Reference.md | ||
undocumented.md |