Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: printing/image_mac.cc

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/ssl/client_cert_store_impl_mac.cc ('k') | printing/pdf_metafile_cg_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/image_mac.cc
diff --git a/printing/image_mac.cc b/printing/image_mac.cc
index 7d45178de498def4d3e24c4c46221f753706c812..2ec9ef600481065f12c36e843f9c140ae3e2f096 100644
--- a/printing/image_mac.cc
+++ b/printing/image_mac.cc
@@ -25,11 +25,15 @@ bool Image::LoadMetafile(const Metafile& metafile) {
DCHECK(bytes);
data_.resize(bytes);
- base::mac::ScopedCFTypeRef<CGColorSpaceRef> color_space(
+ base::ScopedCFTypeRef<CGColorSpaceRef> color_space(
CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB));
- base::mac::ScopedCFTypeRef<CGContextRef> bitmap_context(
- CGBitmapContextCreate(&*data_.begin(), size_.width(), size_.height(),
- 8, row_length_, color_space,
+ base::ScopedCFTypeRef<CGContextRef> bitmap_context(
+ CGBitmapContextCreate(&*data_.begin(),
+ size_.width(),
+ size_.height(),
+ 8,
+ row_length_,
+ color_space,
kCGImageAlphaPremultipliedLast));
DCHECK(bitmap_context.get());
« no previous file with comments | « net/ssl/client_cert_store_impl_mac.cc ('k') | printing/pdf_metafile_cg_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698