| Index: ui/gfx/codec/png_codec.h
|
| diff --git a/ui/gfx/codec/png_codec.h b/ui/gfx/codec/png_codec.h
|
| index 3a6d295dbdf45a1e3d77d1711f7474bc190918c6..bf351918317f22c593adb5863b07166d8db8cce7 100644
|
| --- a/ui/gfx/codec/png_codec.h
|
| +++ b/ui/gfx/codec/png_codec.h
|
| @@ -115,9 +115,17 @@ class UI_EXPORT PNGCodec {
|
| // images are. (There are a lot of themes that have a NTP image of about ~1
|
| // megabyte, and those require a 7-10 megabyte side buffer.)
|
| //
|
| + // If |scale_fallback| is not NULL, it is set to true if a csCl chunk is
|
| + // present in the image, false if not.
|
| + //
|
| // Returns true if data is non-null and can be decoded as a png, false
|
| // otherwise.
|
| static bool Decode(const unsigned char* input, size_t input_size,
|
| + SkBitmap* bitmap, bool* scale_fallback);
|
| +
|
| + // Equivalent to Decode(input, input_size, bitmap, NULL), for clients that
|
| + // don't need scale_fallback returned (which is most clients).
|
| + static bool Decode(const unsigned char* input, size_t input_size,
|
| SkBitmap* bitmap);
|
|
|
| // Create a SkBitmap from a decoded BGRA DIB. The caller owns the returned
|
|
|