Chromium Code Reviews| Index: skia/ext/skia_utils_mac.mm |
| diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm |
| index c0db0132ab9ffabd4a32554a76fca25cd71147ab..687e776e84d99d65aacebe1bf36f33db50e9aa48 100644 |
| --- a/skia/ext/skia_utils_mac.mm |
| +++ b/skia/ext/skia_utils_mac.mm |
| @@ -363,8 +363,10 @@ CGContextRef SkiaBitLocker::cgContext() { |
| bitmap_.allocPixels(); |
| bitmap_.eraseColor(0); |
| } |
| + base::mac::ScopedCFTypeRef<CGColorSpaceRef> color_space( |
|
Robert Sesek
2013/03/04 14:47:53
It looks like the naming convention in skia is cam
Nico
2013/03/04 14:52:35
Yes, but this file is chromium code, not skia code
|
| + CGColorSpaceCreateDeviceRGB()); |
| cgContext_ = CGBitmapContextCreate(bitmap_.getPixels(), bitmap_.width(), |
| - bitmap_.height(), 8, bitmap_.rowBytes(), CGColorSpaceCreateDeviceRGB(), |
| + bitmap_.height(), 8, bitmap_.rowBytes(), color_space, |
| kCGBitmapByteOrder32Host | kCGImageAlphaPremultipliedFirst); |
| // Apply device matrix. |