Chrome Version : 65.0.3294.5
OS Version: OS X 10.12.6
I noticed one in ui/accelerated_widget_mac/ca_renderer_layer_tree.mm
mac_util.mm has
CGColorSpaceRef GetSRGBColorSpace() {
// Leaked. That's OK, it's scoped to the lifetime of the application.
static CGColorSpaceRef g_color_space_sRGB =
CGColorSpaceCreateWithName(kCGColorSpaceSRGB);
DLOG_IF(ERROR, !g_color_space_sRGB) << "Couldn't get the sRGB color space";
return g_color_space_sRGB;
}
I dunno what the performance cost of CGColorSpaceCreateWithName, but if we have GetSRGBColorSpace() I guess we should use it /shruggie
Comment 1 by ligimole@google.com
, Nov 19Status: WontFix (was: Assigned)