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

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

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 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 52115c8656511c850a91deda56cddad596de0b04..7ce3a83c2fa254c8a493ed954092ef7ae5546192 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -349,10 +349,10 @@ class EditableProfilePhoto : public views::LabelButton {
SetEnabled(false);
}
- void PaintChildren(const ui::PaintContext& context) override {
+ void PaintChildren(const views::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(
@@ -360,11 +360,11 @@ 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(
- context, gfx::Size(kProfileBadgeSize, kProfileBadgeSize));
+ paint_info.context(), gfx::Size(kProfileBadgeSize, kProfileBadgeSize));
gfx::Canvas* canvas = paint_recorder.canvas();
if (profile_->IsSupervised()) {
gfx::Rect bounds(0, 0, kProfileBadgeSize, kProfileBadgeSize);
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698