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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp

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: third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp
index 41c4c12421a4ab00a403f5e8c1b5db54dba55166..a26594466b40fd22c60878b786095b05772c5a92 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp
@@ -48,9 +48,6 @@ ImageFrame& ImageFrame::operator=(const ImageFrame& other) {
return *this;
bitmap_ = other.bitmap_;
- // Keep the pixels locked since we will be writing directly into the
- // bitmap throughout this object's lifetime.
- bitmap_.lockPixels();
// Be sure to assign this before calling setStatus(), since setStatus() may
// call notifyBitmapIfPixelsChanged().
pixels_changed_ = other.pixels_changed_;

Powered by Google App Engine
This is Rietveld 408576698