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

Side by Side Diff: ash/system/user/rounded_image_view.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ash/system/user/rounded_image_view.h ('k') | ash/system/user/tray_user.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/system/user/rounded_image_view.h" 5 #include "ash/system/user/rounded_image_view.h"
6 6
7 #include "skia/ext/image_operations.h" 7 #include "skia/ext/image_operations.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "ui/gfx/canvas.h" 9 #include "ui/gfx/canvas.h"
10 #include "ui/gfx/image/image_skia_operations.h" 10 #include "ui/gfx/image/image_skia_operations.h"
11 #include "ui/gfx/skia_util.h" 11 #include "ui/gfx/skia_util.h"
12 12
13 namespace ash { 13 namespace ash {
14 namespace tray { 14 namespace tray {
15 15
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 SkPath path; 62 SkPath path;
63 path.addRoundRect(gfx::RectToSkRect(image_bounds), kRadius); 63 path.addRoundRect(gfx::RectToSkRect(image_bounds), kRadius);
64 cc::PaintFlags flags; 64 cc::PaintFlags flags;
65 flags.setAntiAlias(true); 65 flags.setAntiAlias(true);
66 canvas->DrawImageInPath(resized_, image_bounds.x(), image_bounds.y(), path, 66 canvas->DrawImageInPath(resized_, image_bounds.x(), image_bounds.y(), path,
67 flags); 67 flags);
68 } 68 }
69 69
70 } // namespace tray 70 } // namespace tray
71 } // namespace ash 71 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/user/rounded_image_view.h ('k') | ash/system/user/tray_user.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698