diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-14 00:30:31 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-14 00:30:31 +0000 |
commit | 39f121a371d153d9beb6c3e1742f0c10bfda7c80 (patch) | |
tree | 5ff078a0bf95e48a2df5ae304e46b337e8849e7f /ui/base | |
parent | 7ccd88817c18ce126e30c6992589c22562000285 (diff) | |
download | chromium_src-39f121a371d153d9beb6c3e1742f0c10bfda7c80.zip chromium_src-39f121a371d153d9beb6c3e1742f0c10bfda7c80.tar.gz chromium_src-39f121a371d153d9beb6c3e1742f0c10bfda7c80.tar.bz2 |
Get rid of Image::Image(SkBitmap*)
Bug=124566
Test=Compiles on CrOS,Mac
Review URL: https://chromiumcodereview.appspot.com/10378009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base')
-rw-r--r-- | ui/base/resource/resource_bundle.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc index f84e8db..9de5a4f 100644 --- a/ui/base/resource/resource_bundle.cc +++ b/ui/base/resource/resource_bundle.cc @@ -467,10 +467,10 @@ gfx::Image& ResourceBundle::GetEmptyImage() { if (empty_image_.IsEmpty()) { // The placeholder bitmap is bright red so people notice the problem. - SkBitmap* bitmap = new SkBitmap(); - bitmap->setConfig(SkBitmap::kARGB_8888_Config, 32, 32); - bitmap->allocPixels(); - bitmap->eraseARGB(255, 255, 0, 0); + SkBitmap bitmap; + bitmap.setConfig(SkBitmap::kARGB_8888_Config, 32, 32); + bitmap.allocPixels(); + bitmap.eraseARGB(255, 255, 0, 0); empty_image_ = gfx::Image(bitmap); } return empty_image_; |