Index: content/browser/renderer_host/delegated_frame_host.cc |
diff --git a/content/browser/renderer_host/delegated_frame_host.cc b/content/browser/renderer_host/delegated_frame_host.cc |
index 95c2da75540df055f617b4546a69b75740f76c52..2db813487f12ff86f0473fb0bb74568365a24df5 100644 |
--- a/content/browser/renderer_host/delegated_frame_host.cc |
+++ b/content/browser/renderer_host/delegated_frame_host.cc |
@@ -618,13 +618,10 @@ void DelegatedFrameHost::CopyFromCompositingSurfaceHasResultForVideo( |
scaled_bitmap = *bitmap.get(); |
} |
- { |
- SkAutoLockPixels scaled_bitmap_locker(scaled_bitmap); |
+ media::CopyRGBToVideoFrame( |
+ reinterpret_cast<uint8_t*>(scaled_bitmap.getPixels()), |
+ scaled_bitmap.rowBytes(), region_in_frame, video_frame.get()); |
- media::CopyRGBToVideoFrame( |
- reinterpret_cast<uint8_t*>(scaled_bitmap.getPixels()), |
- scaled_bitmap.rowBytes(), region_in_frame, video_frame.get()); |
- } |
ignore_result(scoped_callback_runner.Release()); |
callback.Run(region_in_frame, true); |
return; |