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

Unified Diff: ash/common/system/tray/throbber_view.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/tray/throbber_view.cc
diff --git a/ash/common/system/tray/throbber_view.cc b/ash/common/system/tray/throbber_view.cc
index a049503acb6b53611d82fe6b8f3e3df88d56b0bb..645298e1eb304e085dad0e0e91ade7fd7af0cc17 100644
--- a/ash/common/system/tray/throbber_view.cc
+++ b/ash/common/system/tray/throbber_view.cc
@@ -8,6 +8,7 @@
#include "grit/ash_resources.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/compositor/layer.h"
+#include "ui/compositor/layer_type.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
namespace ash {
@@ -40,7 +41,7 @@ ThrobberView::ThrobberView() {
throbber_->set_stop_delay_ms(kThrobberAnimationDurationMs);
AddChildView(throbber_);
- SetPaintToLayer(true);
+ SetPaintToLayer(ui::LAYER_TEXTURED);
layer()->SetFillsBoundsOpaquely(false);
layer()->SetOpacity(0.0);
}

Powered by Google App Engine
This is Rietveld 408576698