Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc |
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
index 32db4a9b398a3273d3e22af641fab2478067c9f6..f0f5e5a98035035b3bb4b791720fe73ad8e90c1a 100644 |
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
@@ -43,6 +43,7 @@ |
#include "third_party/skia/include/core/SkColor.h" |
#include "ui/base/l10n/l10n_util.h" |
#include "ui/base/resource/resource_bundle.h" |
+#include "ui/compositor/clip_transform_recorder.h" |
#include "ui/compositor/paint_context.h" |
#include "ui/gfx/canvas.h" |
#include "ui/gfx/image/image.h" |
@@ -260,7 +261,8 @@ class EditableProfilePhoto : public views::LabelButton { |
void PaintChildren(const ui::PaintContext& context) override { |
// Display any children (the "change photo" overlay) as a circle. |
- context.canvas()->ClipPath(circular_mask_, true); |
+ ui::ClipTransformRecorder clip_transform_recorder(context); |
+ clip_transform_recorder.ClipPathWithAntiAliasing(circular_mask_); |
View::PaintChildren(context); |
} |