diff options
author | halcanary <halcanary@google.com> | 2016-03-29 09:03:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-29 09:03:53 -0700 |
commit | 9d524f22bfde5dc3dc8f48e1be39bdebd3bb0304 (patch) | |
tree | fc75ea6f8bc83b552d9ac9c9b4ac0d5a967ee5ac /tools/sk_tool_utils.cpp | |
parent | e577693b3be06d90c824538e7eac0b25b0e02a99 (diff) |
Style bikeshed - remove extraneous whitespace
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1842753002
Review URL: https://codereview.chromium.org/1842753002
Diffstat (limited to 'tools/sk_tool_utils.cpp')
-rw-r--r-- | tools/sk_tool_utils.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/sk_tool_utils.cpp b/tools/sk_tool_utils.cpp index 10e5c305c3..f46ebb6e60 100644 --- a/tools/sk_tool_utils.cpp +++ b/tools/sk_tool_utils.cpp @@ -91,7 +91,7 @@ void emoji_typeface(SkAutoTUnref<SkTypeface>* tf) { const char* emoji_sample_text() { if (!strcmp(sk_tool_utils::platform_os_emoji(), "CBDT")) { return "Hamburgefons"; - } + } if (!strcmp(sk_tool_utils::platform_os_emoji(), "SBIX")) { return "\xF0\x9F\x92\xB0" "\xF0\x9F\x8F\xA1" "\xF0\x9F\x8E\x85" // 💰🏡🎅 "\xF0\x9F\x8D\xAA" "\xF0\x9F\x8D\x95" "\xF0\x9F\x9A\x80" // 🍪🍕🚀 @@ -167,7 +167,7 @@ void set_portable_typeface(SkPaint* paint, const char* name, SkTypeface::Style s SkTypeface* face = create_font(name, style); SkSafeUnref(paint->setTypeface(face)); } - + void write_pixels(SkCanvas* canvas, const SkBitmap& bitmap, int x, int y, SkColorType colorType, SkAlphaType alphaType) { SkBitmap tmp(bitmap); @@ -256,7 +256,7 @@ void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst) { for (int x = dst.fLeft; x < dst.fRight; ++x) { norm.fX = (x + 0.5f - center.fX) / halfSize.fX; norm.fY = (y + 0.5f - center.fY) / halfSize.fY; - + SkScalar tmp = norm.fX * norm.fX + norm.fY * norm.fY; if (tmp >= 1.0f) { norm.set(0.0f, 0.0f, 1.0f); @@ -295,13 +295,13 @@ void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst) { norm = locX >= locY ? right : down; // LR corner } else { norm = locX > -locY ? right : up; // UR corner - } + } } else { if (locY > 0.0f) { norm = -locX > locY ? left : down; // LL corner } else { norm = locX > locY ? up : left; // UL corner - } + } } } @@ -331,13 +331,13 @@ void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst) { norm = locX >= locY ? rightUp : down; // LR corner } else { norm = rightUp; - } + } } else { if (locY > 0.0f) { norm = -locX > locY ? leftUp : down; // LL corner } else { norm = leftUp; - } + } } norm_to_rgb(bm, x, y, norm); @@ -439,7 +439,7 @@ SkBitmap slow_blur(const SkBitmap& src, float sigma) { *dst.getAddr32(x, y) = blur_pixel(src, x, y, kernel.get(), wh); } } - + return dst; } |