From 0378bf4edc40686bac06c8e14bd25fdb3f9cfb28 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Sat, 1 Jan 2011 18:20:14 +0000 Subject: Move base/mac_util.h to base/mac and use the base::mac namespace. Fix up callers to use the new location & namespace. Remove includes from  files where it wasn't necessary. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6046009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70359 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/plugins/ppapi/ppb_graphics_2d_impl.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'webkit/plugins/ppapi/ppb_graphics_2d_impl.cc') diff --git a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc index 89435ff..a783be4 100644 --- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc +++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc @@ -25,7 +25,7 @@ #include "webkit/plugins/ppapi/ppb_image_data_impl.h" #if defined(OS_MACOSX) -#include "base/mac_util.h" +#include "base/mac/mac_util.h" #include "base/mac/scoped_cftyperef.h" #endif @@ -249,7 +249,8 @@ PPB_Graphics2D_Impl* PPB_Graphics2D_Impl::AsPPB_Graphics2D_Impl() { return this; } -PP_Bool PPB_Graphics2D_Impl::Describe(PP_Size* size, PP_Bool* is_always_opaque) { +PP_Bool PPB_Graphics2D_Impl::Describe(PP_Size* size, + PP_Bool* is_always_opaque) { size->width = image_data_->width(); size->height = image_data_->height(); *is_always_opaque = PP_FALSE; // TODO(brettw) implement this. @@ -497,7 +498,7 @@ void PPB_Graphics2D_Impl::Paint(WebKit::WebCanvas* canvas, CGImageCreate( backing_bitmap.width(), backing_bitmap.height(), 8, 32, backing_bitmap.rowBytes(), - mac_util::GetSystemColorSpace(), + base::mac::GetSystemColorSpace(), kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host, data_provider, NULL, false, kCGRenderingIntentDefault)); -- cgit v1.1