| Index: ui/base/resource/resource_bundle.cc
|
| diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
|
| index 56b37619be579c567d53aa2031ca4b4fb83c6d13..16154d5b6ace5d1f5014878d44bf5d1b0ce77ec2 100644
|
| --- a/ui/base/resource/resource_bundle.cc
|
| +++ b/ui/base/resource/resource_bundle.cc
|
| @@ -119,6 +119,10 @@ gfx::Image& ResourceBundle::GetImageNamed(int resource_id) {
|
|
|
| scoped_ptr<SkBitmap> bitmap(LoadBitmap(resources_data_, resource_id));
|
| if (bitmap.get()) {
|
| + // Check if there's a large version of the image as well.
|
| + scoped_ptr<SkBitmap> large_bitmap(LoadBitmap(
|
| + large_icon_resources_data_, resource_id));
|
| +
|
| // The load was successful, so cache the image.
|
| base::AutoLock lock_scope(*lock_);
|
|
|
| @@ -126,7 +130,11 @@ gfx::Image& ResourceBundle::GetImageNamed(int resource_id) {
|
| if (images_.count(resource_id))
|
| return *images_[resource_id];
|
|
|
| - gfx::Image* image = new gfx::Image(bitmap.release());
|
| + std::vector<const SkBitmap*> bitmaps;
|
| + bitmaps.push_back(bitmap.release());
|
| + if (large_bitmap.get())
|
| + bitmaps.push_back(large_bitmap.release());
|
| + gfx::Image* image = new gfx::Image(bitmaps);
|
| images_[resource_id] = image;
|
| return *image;
|
| }
|
|
|