Index: ui/base/resource/resource_bundle_ios.mm |
diff --git a/ui/base/resource/resource_bundle_ios.mm b/ui/base/resource/resource_bundle_ios.mm |
index f4919d76f58cf3f3c3551bf5547ecd6d8175b2ab..d9f1fb5437c9deaae98d692f81721cd067312d30 100644 |
--- a/ui/base/resource/resource_bundle_ios.mm |
+++ b/ui/base/resource/resource_bundle_ios.mm |
@@ -135,15 +135,16 @@ gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) { |
CGSize source_size = [ui_image size]; |
CGSize target_size = CGSizeMake(source_size.width * target_scale, |
source_size.height * target_scale); |
- base::mac::ScopedCFTypeRef<CGColorSpaceRef> color_space( |
+ base::ScopedCFTypeRef<CGColorSpaceRef> color_space( |
CGColorSpaceCreateDeviceRGB()); |
- base::mac::ScopedCFTypeRef<CGContextRef> context( |
- CGBitmapContextCreate( |
- NULL, |
- target_size.width, target_size.height, |
- 8, target_size.width * 4, |
- color_space, |
- kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host)); |
+ base::ScopedCFTypeRef<CGContextRef> context(CGBitmapContextCreate( |
+ NULL, |
+ target_size.width, |
+ target_size.height, |
+ 8, |
+ target_size.width * 4, |
+ color_space, |
+ kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host)); |
CGRect target_rect = CGRectMake(0, 0, |
target_size.width, target_size.height); |
@@ -158,7 +159,7 @@ gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) { |
CGContextFillRect(context, target_rect); |
} |
- base::mac::ScopedCFTypeRef<CGImageRef> cg_image( |
+ base::ScopedCFTypeRef<CGImageRef> cg_image( |
CGBitmapContextCreateImage(context)); |
ui_image.reset([[UIImage alloc] initWithCGImage:cg_image |
scale:target_scale |