diff options
author | Cary Clark <caryclark@skia.org> | 2018-06-19 09:07:28 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-19 13:11:30 +0000 |
commit | 929e436c98a8eb8a40aac5e7665551650f1ccbcb (patch) | |
tree | 448d431d7037b2295ec83ff3defe7e6546c43aa6 /docs | |
parent | 560714336135d9bf851146ead65a6c68cf4220ed (diff) |
fix bookmaker files
make edits compile
Next time, could you put me on the review if you are going to
edit bookmaker files? I'm happy to preflight the changes
to see if they break the bots.
Docs-Preview: https://skia.org/?cl=135703
NOTRY=true
Bug: skia:6898
Change-Id: Iae054f19b131e894f73cedda279ee98af99e8c1c
Reviewed-on: https://skia-review.googlesource.com/135703
Commit-Queue: Cary Clark <caryclark@skia.org>
Auto-Submit: Cary Clark <caryclark@skia.org>
Reviewed-by: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/SkColor_Reference.bmh | 5 | ||||
-rw-r--r-- | docs/SkImageInfo_Reference.bmh | 2 | ||||
-rw-r--r-- | docs/SkPixmap_Reference.bmh | 3 |
3 files changed, 4 insertions, 6 deletions
diff --git a/docs/SkColor_Reference.bmh b/docs/SkColor_Reference.bmh index 27b76a58dc..37fdbe1dda 100644 --- a/docs/SkColor_Reference.bmh +++ b/docs/SkColor_Reference.bmh @@ -676,9 +676,8 @@ hsv[2] contains HSV_Value, a value from zero to one. for (int y = 0; y < 256; ++y) {
for (int x = 0; x < 256; ++x) {
SkScalar hsv[3];
- SkColorToHSV(source.getColor(x, y), hsv)
- using std::swap;
- swap(hsv[1], hsv[2]);
+ SkColorToHSV(source.getColor(x, y), hsv);
+ std::swap(hsv[1], hsv[2]);
SkPaint paint;
paint.setColor(SkHSVToColor(hsv));
canvas->drawRect(SkRect::MakeXYWH(x, y, 1, 1), paint);
diff --git a/docs/SkImageInfo_Reference.bmh b/docs/SkImageInfo_Reference.bmh index 6fa615e4fb..096695cecf 100644 --- a/docs/SkImageInfo_Reference.bmh +++ b/docs/SkImageInfo_Reference.bmh @@ -762,7 +762,7 @@ kRGBA_8888_SkColorType. #Line # encodes ARGB as half floats ## kRGBA_F16_SkColorType encodes ARGB into a 64-bit word. Each component: blue, green, red, and alpha; use 16 bits, describing a floating point value. - from -65500 to 65000 with 3.31 decimal digits of precision. + from -65500 to 65000 with 3.31 decimal digits of precision. At present, Color in Paint does not provide enough precision or range to draw all colors possible to a kRGBA_F16_SkColorType Surface. diff --git a/docs/SkPixmap_Reference.bmh b/docs/SkPixmap_Reference.bmh index 019c13a8ac..de3415fef7 100644 --- a/docs/SkPixmap_Reference.bmh +++ b/docs/SkPixmap_Reference.bmh @@ -1387,8 +1387,7 @@ One word corresponds to one pixel. for (int y = 0; y < pixmap.height() / 2; ++y) { for (int x = 0; x < pixmap.width(); ++x) { if ((x & 4) == (y & 4)) { - using std::swap; - swap(*pixmap.writable_addr32(x, y), + std::swap(*pixmap.writable_addr32(x, y), *pixmap.writable_addr32(pixmap.width() - x, pixmap.height() - y)); } } |