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

Unified Diff: skia/ext/bitmap_platform_device_mac.cc

Issue 126150: Rename CreateWithContext to Create (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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 | « skia/ext/bitmap_platform_device_mac.h ('k') | skia/ext/platform_canvas_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_mac.cc
===================================================================
--- skia/ext/bitmap_platform_device_mac.cc (revision 18417)
+++ skia/ext/bitmap_platform_device_mac.cc (working copy)
@@ -175,8 +175,10 @@
// 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 @@
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
« no previous file with comments | « skia/ext/bitmap_platform_device_mac.h ('k') | skia/ext/platform_canvas_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698