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

Unified Diff: remoting/host/chromeos/skia_bitmap_desktop_frame.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
« no previous file with comments | « printing/emf_win.cc ('k') | remoting/test/frame_generator_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « printing/emf_win.cc ('k') | remoting/test/frame_generator_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698