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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Update tests Created 3 years, 5 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
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 d970d36ff85de1866701287299e3ba21d1fc544c..f6424e993fc5e03fc667b011dafb1bf3f03cdbb0 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -345,10 +345,10 @@ class EditableProfilePhoto : public views::LabelButton {
SetEnabled(false);
}
- void PaintChildren(const ui::PaintContext& context) override {
+ void PaintChildren(const ui::PaintInfo& paint_info) override {
{
// Display any children (the "change photo" overlay) as a circle.
- ui::ClipRecorder clip_recorder(context);
+ ui::ClipRecorder clip_recorder(paint_info.context());
gfx::Rect clip_bounds = image()->GetMirroredBounds();
gfx::Path clip_mask;
clip_mask.addCircle(
@@ -356,7 +356,7 @@ class EditableProfilePhoto : public views::LabelButton {
clip_bounds.y() + clip_bounds.height() / 2,
clip_bounds.width() / 2);
clip_recorder.ClipPathWithAntiAliasing(clip_mask);
- View::PaintChildren(context);
+ View::PaintChildren(paint_info);
}
ui::PaintRecorder paint_recorder(

Powered by Google App Engine
This is Rietveld 408576698