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

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

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: Refactor Created 3 years, 11 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: ash/common/system/user/tray_user.cc
diff --git a/ash/common/system/user/tray_user.cc b/ash/common/system/user/tray_user.cc
index 98f009e95588162ee4901b0c52f454f171d289cf..d894eb83df66a65fc69f3551d85c76a5cc73459e 100644
--- a/ash/common/system/user/tray_user.cc
+++ b/ash/common/system/user/tray_user.cc
@@ -22,6 +22,7 @@
#include "components/user_manager/user_info.h"
#include "grit/ash_strings.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/compositor/layer_type.h"
#include "ui/gfx/image/image.h"
#include "ui/views/border.h"
#include "ui/views/controls/label.h"
@@ -158,7 +159,7 @@ void TrayUser::UpdateAfterLoginStatusChange(LoginStatus status) {
if (need_avatar) {
avatar_ = new tray::RoundedImageView(kTrayRoundedBorderRadius, true);
if (MaterialDesignController::IsShelfMaterial()) {
- avatar_->SetPaintToLayer(true);
+ avatar_->SetPaintToLayer(ui::LAYER_TEXTURED);
avatar_->layer()->SetFillsBoundsOpaquely(false);
}
layout_view_->AddChildView(avatar_);

Powered by Google App Engine
This is Rietveld 408576698