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

Unified Diff: content/renderer/renderer_clipboard_delegate.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/renderer/renderer_clipboard_delegate.cc
diff --git a/content/renderer/renderer_clipboard_delegate.cc b/content/renderer/renderer_clipboard_delegate.cc
index 1fb70deb3c7986c5759efc55e007ad6853e53b3c..ec5e4ff8623ab7a06a2a11712e6b9bc550c13f39 100644
--- a/content/renderer/renderer_clipboard_delegate.cc
+++ b/content/renderer/renderer_clipboard_delegate.cc
@@ -123,8 +123,8 @@ bool RendererClipboardDelegate::WriteImage(ui::ClipboardType clipboard_type,
const gfx::Size size(bitmap.width(), bitmap.height());
std::unique_ptr<base::SharedMemory> shared_buf;
+
{
- SkAutoLockPixels locked(bitmap);
void* pixels = bitmap.getPixels();
// TODO(piman): this should not be NULL, but it is. crbug.com/369621
if (!pixels)
« no previous file with comments | « content/renderer/pepper/pepper_video_source_host.cc ('k') | content/shell/browser/layout_test/blink_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698