| Index: ui/gfx/image/image.h
|
| diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
|
| index ab13e84c001fb3533f6ac626cecbbb1ca3a7b99c..e9619dca21e5ec9a8f4334feae7d84987e97aa92 100644
|
| --- a/ui/gfx/image/image.h
|
| +++ b/ui/gfx/image/image.h
|
| @@ -28,6 +28,10 @@
|
| #include "ui/base/ui_export.h"
|
| #include "ui/gfx/native_widget_types.h"
|
|
|
| +#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| +typedef struct CGColorSpace* CGColorSpaceRef;
|
| +#endif
|
| +
|
| class SkBitmap;
|
|
|
| namespace {
|
| @@ -175,6 +179,13 @@ class UI_EXPORT Image {
|
| // Swaps this image's internal representations with |other|.
|
| void SwapRepresentations(gfx::Image* other);
|
|
|
| +#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| + // Set the default representation's color space. This is used for converting
|
| + // to NSImage. This is used to compensate for PNGCodec not writing or reading
|
| + // colorspace ancillary chunks. (sRGB, iCCP).
|
| + void SetSourceColorSpace(CGColorSpaceRef color_space);
|
| +#endif // defined(OS_MACOSX) && !defined(OS_IOS)
|
| +
|
| private:
|
| // Returns the type of the default representation.
|
| RepresentationType DefaultRepresentationType() const;
|
|
|