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

Unified Diff: athena/test/test_app_model_builder.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
Index: athena/test/test_app_model_builder.cc
diff --git a/athena/test/test_app_model_builder.cc b/athena/test/test_app_model_builder.cc
index f7db8a0abe1d685354c914032ecb049b7ef409a5..c4b53871634a82d0adc5c8867b5b634c0a1b748e 100644
--- a/athena/test/test_app_model_builder.cc
+++ b/athena/test/test_app_model_builder.cc
@@ -78,8 +78,7 @@ class DummyItem : public app_list::AppListItem {
break;
}
SkBitmap bitmap;
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, kIconSize, kIconSize);
- bitmap.allocPixels();
+ bitmap.allocN32Pixels(kIconSize, kIconSize);
bitmap.eraseColor(color);
return gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
}
« no previous file with comments | « athena/content/content_app_model_builder.cc ('k') | chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698