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

Unified Diff: ash/shell/window_watcher.cc

Issue 363933002: setConfig is deprecated, use setInfo or allocPixels instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « ash/shell/app_list.cc ('k') | ash/system/chromeos/network/network_icon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_watcher.cc
diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc
index 44edaa4af64322d9cba7ca3b4692d9eca0f1dc08..d7bc72683c307b2c46bcf19e2f0673f81e4b6bc3 100644
--- a/ash/shell/window_watcher.cc
+++ b/ash/shell/window_watcher.cc
@@ -105,8 +105,7 @@ void WindowWatcher::OnWindowAdded(aura::Window* new_window) {
id_to_window_[id] = new_window;
SkBitmap icon_bitmap;
- icon_bitmap.setConfig(SkBitmap::kARGB_8888_Config, 16, 16);
- icon_bitmap.allocPixels();
+ icon_bitmap.allocN32Pixels(16, 16);
icon_bitmap.eraseARGB(255,
image_count == 0 ? 255 : 0,
image_count == 1 ? 255 : 0,
« no previous file with comments | « ash/shell/app_list.cc ('k') | ash/system/chromeos/network/network_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698