| 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..130826ebb975a8c1cc19f5c5b682fc38c9d89b13 100644
|
| --- a/ui/gfx/codec/png_codec.h
|
| +++ b/ui/gfx/codec/png_codec.h
|
| @@ -117,6 +117,15 @@ class UI_EXPORT PNGCodec {
|
| //
|
| // Returns true if data is non-null and can be decoded as a png, false
|
| // otherwise.
|
| + //
|
| + // If the call succeeds and |fell_back_to_1x| is not NULL, it is set to true
|
| + // if Chrome's custom csCl PNG chunk is present (indicating that GRIT fell
|
| + // back to the 100% image), false if not.
|
| + static bool Decode(const unsigned char* input, size_t input_size,
|
| + SkBitmap* bitmap, bool* fell_back_to_1x);
|
| +
|
| + // Equivalent to Decode(input, input_size, bitmap, NULL), for clients that
|
| + // don't need fell_back_to_1x returned (which is most clients).
|
| static bool Decode(const unsigned char* input, size_t input_size,
|
| SkBitmap* bitmap);
|
|
|
|
|