Index: ui/base/clipboard/clipboard_android.cc |
diff --git a/ui/base/clipboard/clipboard_android.cc b/ui/base/clipboard/clipboard_android.cc |
index 1761d6c35e97d96558985cdabaf27963fe43b39b..b33b78fcd7fcadcd517ef93cab653c0056408ee9 100644 |
--- a/ui/base/clipboard/clipboard_android.cc |
+++ b/ui/base/clipboard/clipboard_android.cc |
@@ -498,11 +498,8 @@ void ClipboardAndroid::WriteBitmap(const SkBitmap& bitmap) { |
gfx::Size size(bitmap.width(), bitmap.height()); |
std::string packed(reinterpret_cast<const char*>(&size), sizeof(size)); |
- { |
- SkAutoLockPixels bitmap_lock(bitmap); |
- packed += std::string(static_cast<const char*>(bitmap.getPixels()), |
- bitmap.getSize()); |
- } |
+ packed += std::string(static_cast<const char*>(bitmap.getPixels()), |
+ bitmap.getSize()); |
g_map.Get().Set(kBitmapFormat, packed); |
} |