Chromium Code Reviews

Unified Diff: printing/image.cc

Issue 3855001: Move scoped_cftyperef from base to base/mac, use the new namespace, and name ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « net/socket/ssl_client_socket_mac.cc ('k') | printing/pdf_metafile_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/image.cc
===================================================================
--- printing/image.cc (revision 62861)
+++ printing/image.cc (working copy)
@@ -15,7 +15,7 @@
#include "gfx/gdi_util.h" // EMF support
#elif defined(OS_MACOSX)
#include <ApplicationServices/ApplicationServices.h>
-#include "base/scoped_cftyperef.h"
+#include "base/mac/scoped_cftyperef.h"
#endif
namespace {
@@ -243,9 +243,9 @@
size_t bytes = row_length_ * size_.height();
DCHECK(bytes);
data_.resize(bytes);
- scoped_cftyperef<CGColorSpaceRef> color_space(
+ base::mac::ScopedCFTypeRef<CGColorSpaceRef> color_space(
CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB));
- scoped_cftyperef<CGContextRef> bitmap_context(
+ base::mac::ScopedCFTypeRef<CGContextRef> bitmap_context(
CGBitmapContextCreate(&*data_.begin(), size_.width(), size_.height(),
8, row_length_, color_space,
kCGImageAlphaPremultipliedLast));
« no previous file with comments | « net/socket/ssl_client_socket_mac.cc ('k') | printing/pdf_metafile_mac.h » ('j') | no next file with comments »

Powered by Google App Engine