Index: skia/ext/bitmap_platform_device_win.cc |
=================================================================== |
--- skia/ext/bitmap_platform_device_win.cc (revision 120216) |
+++ skia/ext/bitmap_platform_device_win.cc (working copy) |
@@ -247,11 +247,12 @@ |
data_->ReleaseBitmapDC(); |
} |
-void BitmapPlatformDevice::onAccessBitmap(SkBitmap* bitmap) { |
+const SkBitmap& BitmapPlatformDevice::onAccessBitmap(SkBitmap* bitmap) { |
// FIXME(brettw) OPTIMIZATION: We should only flush if we know a GDI |
// operation has occurred on our DC. |
if (data_->IsBitmapDCCreated()) |
GdiFlush(); |
+ return *bitmap; |
} |
SkDevice* BitmapPlatformDevice::onCreateCompatibleDevice( |