From 32e7a9b5af36ff4c9288defd8c58c21b6217871b Mon Sep 17 00:00:00 2001 From: "pkotwicz@chromium.org" Date: Wed, 23 Jan 2013 23:00:19 +0000 Subject: Convert gfx::Image::Image(const SkBitmap&) and gfx::ImageSkia::ImageSkia(const SkBitmap&) to gfx::Image::CreateFrom1xBitmap(const SkBitmap&) and gfx::ImageSkia::CreateFrom1xBitmap(const SkBitmap&) respectively Hopefully these changes will make the constructors / factory methods less confusing and prevent bugs as a result of confusion about what the constructors do. Review URL: https://chromiumcodereview.appspot.com/11970013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178408 0039d316-1c4b-4281-b951-d872f2087c98 --- ash/shell/app_list.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ash/shell') diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc index 268a472..daaa486 100644 --- a/ash/shell/app_list.cc +++ b/ash/shell/app_list.cc @@ -60,7 +60,7 @@ class WindowTypeLauncherItem : public app_list::AppListItemModel { icon.setConfig(SkBitmap::kARGB_8888_Config, kIconSize, kIconSize); icon.allocPixels(); icon.eraseColor(kColors[static_cast(type) % arraysize(kColors)]); - return gfx::ImageSkia(icon); + return gfx::ImageSkia::CreateFrom1xBitmap(icon); } // The text below is not localized as this is an example code. -- cgit v1.1