Index: ui/base/clipboard/clipboard_win.cc |
diff --git a/ui/base/clipboard/clipboard_win.cc b/ui/base/clipboard/clipboard_win.cc |
index ae892c9c0faa8b985aaeb342fb0e018fd5b852e4..c135e35bfeecb37a6984c6c5b559accd85fd7886 100644 |
--- a/ui/base/clipboard/clipboard_win.cc |
+++ b/ui/base/clipboard/clipboard_win.cc |
@@ -808,11 +808,8 @@ void ClipboardWin::WriteBitmap(const SkBitmap& bitmap) { |
::CreateDIBSection(dc, &bm_info, DIB_RGB_COLORS, &bits, NULL, 0); |
if (bits && source_hbitmap) { |
- { |
- SkAutoLockPixels bitmap_lock(bitmap); |
- // Copy the bitmap out of shared memory and into GDI |
- memcpy(bits, bitmap.getPixels(), bitmap.getSize()); |
- } |
+ // Copy the bitmap out of shared memory and into GDI |
+ memcpy(bits, bitmap.getPixels(), bitmap.getSize()); |
// Now we have an HBITMAP, we can write it to the clipboard |
WriteBitmapFromHandle(source_hbitmap, |