| Index: ui/base/resource/resource_bundle.h
|
| diff --git a/ui/base/resource/resource_bundle.h b/ui/base/resource/resource_bundle.h
|
| index fcc07dbe81c8f42781d5dfbb337b044b710477e5..c38306527b20a2ec315a5a763090723f7036988d 100644
|
| --- a/ui/base/resource/resource_bundle.h
|
| +++ b/ui/base/resource/resource_bundle.h
|
| @@ -282,14 +282,22 @@ class UI_EXPORT ResourceBundle {
|
| // Initialize all the gfx::Font members if they haven't yet been initialized.
|
| void LoadFontsIfNecessary();
|
|
|
| - // Creates and returns a new SkBitmap given the data file to look in and the
|
| - // |resource_id|. It's up to the caller to free the returned bitmap when
|
| - // done.
|
| - SkBitmap* LoadBitmap(const ResourceHandle& dll_inst, int resource_id) const;
|
| -
|
| - // Creates and returns a new SkBitmap for |resource_id| and |scale_factor|.
|
| - // Returns NULL if the resource does not exist.
|
| - SkBitmap* LoadBitmap(int resource_id, ScaleFactor scale_factor) const;
|
| + // Fills the |bitmap| given the data file to look in and the |resource_id|.
|
| + // Returns false if the resource does not exist.
|
| + //
|
| + // If |percent| is not NULL, it is filled with the value from Chrome's custom
|
| + // csCl PNG chunk, if present, or -1 otherwise.
|
| + bool LoadBitmap(const ResourceHandle& dll_inst,
|
| + int resource_id,
|
| + SkBitmap* bitmap,
|
| + int* percent) const;
|
| +
|
| + // Fills the |bitmap| given the |resource_id| and |scale_factor|.
|
| + // Returns false if the resource does not exist.
|
| + bool LoadBitmap(int resource_id,
|
| + ScaleFactor scale_factor,
|
| + SkBitmap* bitmap,
|
| + int* percent) const;
|
|
|
| // Returns an empty image for when a resource cannot be loaded. This is a
|
| // bright red bitmap.
|
|
|