Chromium Code Reviews| Index: ui/base/resource/resource_bundle.cc |
| diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc |
| index d6a69bd31ac84c65650c8eb9ee18696c72b7c831..f84e8dbb8d432f03040d2a7ef4e472c06ce51c10 100644 |
| --- a/ui/base/resource/resource_bundle.cc |
| +++ b/ui/base/resource/resource_bundle.cc |
| @@ -212,6 +212,11 @@ SkBitmap* ResourceBundle::GetBitmapNamed(int resource_id) { |
| return const_cast<SkBitmap*>(bitmap); |
| } |
| +gfx::ImageSkia* ResourceBundle::GetImageSkiaNamed(int resource_id) { |
| + const gfx::ImageSkia* image = GetImageNamed(resource_id).ToImageSkia(); |
| + return const_cast<gfx::ImageSkia*>(image); |
|
sky
2012/05/10 15:51:10
Why do we need this? Can't folks get the ImageSkia
|
| +} |
| + |
| gfx::Image& ResourceBundle::GetImageNamed(int resource_id) { |
| // Check to see if the image is already in the cache. |
| { |