Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3082)

Unified Diff: ash/common/system/user/rounded_image_view.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/user/login_status.cc ('k') | ash/common/system/user/tray_user_separator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/user/rounded_image_view.cc
diff --git a/ash/common/system/user/rounded_image_view.cc b/ash/common/system/user/rounded_image_view.cc
index 7496cb51dce5b22a55293ab003b3a1435e3d1c86..b884ed0489d085699ef4cea73f67ab8fbc6f5dc8 100644
--- a/ash/common/system/user/rounded_image_view.cc
+++ b/ash/common/system/user/rounded_image_view.cc
@@ -56,23 +56,18 @@ void RoundedImageView::OnPaint(gfx::Canvas* canvas) {
image_bounds.ClampToCenteredSize(GetPreferredSize());
image_bounds.Inset(GetInsets());
const SkScalar kRadius[8] = {
- SkIntToScalar(corner_radius_[0]),
- SkIntToScalar(corner_radius_[0]),
- SkIntToScalar(corner_radius_[1]),
- SkIntToScalar(corner_radius_[1]),
- SkIntToScalar(corner_radius_[2]),
- SkIntToScalar(corner_radius_[2]),
- SkIntToScalar(corner_radius_[3]),
- SkIntToScalar(corner_radius_[3])
- };
+ SkIntToScalar(corner_radius_[0]), SkIntToScalar(corner_radius_[0]),
+ SkIntToScalar(corner_radius_[1]), SkIntToScalar(corner_radius_[1]),
+ SkIntToScalar(corner_radius_[2]), SkIntToScalar(corner_radius_[2]),
+ SkIntToScalar(corner_radius_[3]), SkIntToScalar(corner_radius_[3])};
SkPath path;
path.addRoundRect(gfx::RectToSkRect(image_bounds), kRadius);
SkPaint paint;
paint.setAntiAlias(true);
paint.setXfermodeMode(active_user_ ? SkXfermode::kSrcOver_Mode
: SkXfermode::kLuminosity_Mode);
- canvas->DrawImageInPath(
- resized_, image_bounds.x(), image_bounds.y(), path, paint);
+ canvas->DrawImageInPath(resized_, image_bounds.x(), image_bounds.y(), path,
+ paint);
}
} // namespace tray
« no previous file with comments | « ash/common/system/user/login_status.cc ('k') | ash/common/system/user/tray_user_separator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698