Index: remoting/host/chromeos/skia_bitmap_desktop_frame.cc |
diff --git a/remoting/host/chromeos/skia_bitmap_desktop_frame.cc b/remoting/host/chromeos/skia_bitmap_desktop_frame.cc |
index a692a39a35addbf303290a727519de1c4f5c1da8..31e2100a8e5522d612ae06e6e5e16ec8374983ec 100644 |
--- a/remoting/host/chromeos/skia_bitmap_desktop_frame.cc |
+++ b/remoting/host/chromeos/skia_bitmap_desktop_frame.cc |
@@ -19,10 +19,7 @@ SkiaBitmapDesktopFrame* SkiaBitmapDesktopFrame::Create( |
DCHECK_EQ(kBGRA_8888_SkColorType, bitmap->info().colorType()) |
<< "DesktopFrame objects always hold RGBA data."; |
- bitmap->lockPixels(); |
uint8_t* bitmap_data = reinterpret_cast<uint8_t*>(bitmap->getPixels()); |
- bitmap->unlockPixels(); |
- |
const size_t row_bytes = bitmap->rowBytes(); |
SkiaBitmapDesktopFrame* result = new SkiaBitmapDesktopFrame( |
size, row_bytes, bitmap_data, std::move(bitmap)); |