Index: skia/ext/bitmap_platform_device_mac.cc |
=================================================================== |
--- skia/ext/bitmap_platform_device_mac.cc (revision 86706) |
+++ skia/ext/bitmap_platform_device_mac.cc (working copy) |
@@ -226,8 +226,8 @@ |
data_->SetMatrixClip(transform, region); |
} |
-void BitmapPlatformDevice::DrawToContext(CGContextRef context, int x, int y, |
- const CGRect* src_rect) { |
+void BitmapPlatformDevice::DrawToNativeContext(CGContextRef context, int x, |
+ int y, const CGRect* src_rect) { |
bool created_dc = false; |
if (!data_->bitmap_context()) { |
created_dc = true; |
@@ -261,14 +261,6 @@ |
return false; |
} |
-// Returns the color value at the specified location. |
-SkColor BitmapPlatformDevice::getColorAt(int x, int y) { |
- const SkBitmap& bitmap = accessBitmap(true); |
- SkAutoLockPixels lock(bitmap); |
- uint32_t* data = bitmap.getAddr32(0, 0); |
- return static_cast<SkColor>(data[x + y * width()]); |
-} |
- |
void BitmapPlatformDevice::onAccessBitmap(SkBitmap*) { |
// Not needed in CoreGraphics |
} |