| Index: base/mac/mac_util.mm
|
| diff --git a/base/mac/mac_util.mm b/base/mac/mac_util.mm
|
| index 32dc735df0659fcea0110f33d4853902e59b576d..e924f9021da361ef1992663575c2ceea7b38460f 100644
|
| --- a/base/mac/mac_util.mm
|
| +++ b/base/mac/mac_util.mm
|
| @@ -144,6 +144,15 @@ bool FSRefFromPath(const std::string& path, FSRef* ref) {
|
| return status == noErr;
|
| }
|
|
|
| +CGColorSpaceRef GetGenericRGBColorSpace() {
|
| + // Leaked. That's OK, it's scoped to the lifetime of the application.
|
| + static CGColorSpaceRef g_color_space_generic_rgb(
|
| + CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB));
|
| + DLOG_IF(ERROR, !g_color_space_generic_rgb) <<
|
| + "Couldn't get the generic RGB color space";
|
| + return g_color_space_generic_rgb;
|
| +}
|
| +
|
| CGColorSpaceRef GetSRGBColorSpace() {
|
| // Leaked. That's OK, it's scoped to the lifetime of the application.
|
| static CGColorSpaceRef g_color_space_sRGB =
|
|
|