diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 20:04:03 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 20:04:03 +0000 |
commit | 23e891ac1f17ddf3fa4221729b0ebf5fe548a48a (patch) | |
tree | d548bf9827fe5ef975594f5021052a875f0f4397 /skia | |
parent | 23d3539963fef1639e50b03e32c99f3995b3a0a6 (diff) | |
download | chromium_src-23e891ac1f17ddf3fa4221729b0ebf5fe548a48a.zip chromium_src-23e891ac1f17ddf3fa4221729b0ebf5fe548a48a.tar.gz chromium_src-23e891ac1f17ddf3fa4221729b0ebf5fe548a48a.tar.bz2 |
Rename CreateWithContext to Create
Review URL: http://codereview.chromium.org/126150
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18420 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/bitmap_platform_device_mac.cc | 8 | ||||
-rw-r--r-- | skia/ext/bitmap_platform_device_mac.h | 8 | ||||
-rw-r--r-- | skia/ext/platform_canvas_mac.cc | 3 |
3 files changed, 10 insertions, 9 deletions
diff --git a/skia/ext/bitmap_platform_device_mac.cc b/skia/ext/bitmap_platform_device_mac.cc index 2daf772..834655d 100644 --- a/skia/ext/bitmap_platform_device_mac.cc +++ b/skia/ext/bitmap_platform_device_mac.cc @@ -175,8 +175,10 @@ void BitmapPlatformDevice::BitmapPlatformDeviceData::LoadConfig() { // that we can create the pixel data before calling the constructor. This is // required so that we can call the base class' constructor with the pixel // data. -BitmapPlatformDevice* BitmapPlatformDevice::CreateWithContext( - CGContextRef context, int width, int height, bool is_opaque) { +BitmapPlatformDevice* BitmapPlatformDevice::Create(CGContextRef context, + int width, + int height, + bool is_opaque) { SkBitmap bitmap; bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height); if (bitmap.allocPixels() != true) @@ -221,7 +223,7 @@ BitmapPlatformDevice* BitmapPlatformDevice::CreateWithData(uint8_t* data, if (data) context = CGContextForData(data, width, height); - return CreateWithContext(context, width, height, is_opaque); + return Create(context, width, height, is_opaque); } // The device will own the bitmap, which corresponds to also owning the pixel diff --git a/skia/ext/bitmap_platform_device_mac.h b/skia/ext/bitmap_platform_device_mac.h index d293cd4..7f1be1e 100644 --- a/skia/ext/bitmap_platform_device_mac.h +++ b/skia/ext/bitmap_platform_device_mac.h @@ -26,11 +26,11 @@ namespace skia { class BitmapPlatformDevice : public PlatformDevice { public: // |context| may be NULL. - static BitmapPlatformDevice* CreateWithContext(CGContextRef context, - int width, int height, - bool is_opaque); + static BitmapPlatformDevice* Create(CGContextRef context, + int width, int height, + bool is_opaque); - // Creates a context for |data| and calls CreateWithContext. + // Creates a context for |data| and calls Create. static BitmapPlatformDevice* CreateWithData(uint8_t* data, int width, int height, bool is_opaque); diff --git a/skia/ext/platform_canvas_mac.cc b/skia/ext/platform_canvas_mac.cc index e75e55aa..33d7eb2 100644 --- a/skia/ext/platform_canvas_mac.cc +++ b/skia/ext/platform_canvas_mac.cc @@ -63,8 +63,7 @@ SkDevice* PlatformCanvas::createDevice(SkBitmap::Config config, int height, bool is_opaque, bool isForLayer) { SkASSERT(config == SkBitmap::kARGB_8888_Config); - return BitmapPlatformDevice::CreateWithContext(NULL, width, height, - is_opaque); + return BitmapPlatformDevice::Create(NULL, width, height, is_opaque); } } // namespace skia |