Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(904)

Unified Diff: content/browser/renderer_host/delegated_frame_host.cc

Issue 2823003002: SkBitmap and SkPixelRef no longer need lock/unlock (Closed)
Patch Set: win fix after rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698