| Index: ui/gfx/image/image.h
|
| diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
|
| index c03db3ad18e783231e57e53712350e10e925f0c6..04a79daffec0673be643d72e04bf7a53e760f501 100644
|
| --- a/ui/gfx/image/image.h
|
| +++ b/ui/gfx/image/image.h
|
| @@ -107,6 +107,13 @@ class UI_EXPORT Image {
|
| NSImage* ToNSImage() const;
|
| #endif
|
|
|
| + // Same as ToSkBitmap(), but returns a null SkBitmap if this image is empty.
|
| + SkBitmap AsBitmap() const;
|
| +
|
| + // Same as ToSkBitmap(), but returns a ImageSkia with a null SkBitmap if this
|
| + // image is empty.
|
| + ImageSkia AsImageSkia() const;
|
| +
|
| // Performs a conversion, like above, but returns a copy of the result rather
|
| // than a weak pointer. The caller is responsible for deleting the result.
|
| // Note that the result is only a copy in terms of memory management; the
|
|
|