Index: chrome/browser/media/webrtc/tab_desktop_media_list_unittest.cc |
diff --git a/chrome/browser/media/webrtc/tab_desktop_media_list_unittest.cc b/chrome/browser/media/webrtc/tab_desktop_media_list_unittest.cc |
index 3ad2de008be52993907caee1515a129a62d5406f..183441a82879ddad15217ca6bafd1e2daef6e7ee 100644 |
--- a/chrome/browser/media/webrtc/tab_desktop_media_list_unittest.cc |
+++ b/chrome/browser/media/webrtc/tab_desktop_media_list_unittest.cc |
@@ -62,7 +62,6 @@ gfx::Image CreateGrayscaleImage(gfx::Size size, uint8_t greyscale_value) { |
SkBitmap result; |
result.allocN32Pixels(size.width(), size.height(), true); |
- result.lockPixels(); |
uint8_t* pixels_data = reinterpret_cast<uint8_t*>(result.getPixels()); |
// Set greyscale value for all pixels. |
@@ -79,8 +78,6 @@ gfx::Image CreateGrayscaleImage(gfx::Size size, uint8_t greyscale_value) { |
} |
} |
- result.unlockPixels(); |
- |
return gfx::Image::CreateFrom1xBitmap(result); |
} |