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

Unified Diff: chrome/browser/devtools/devtools_eye_dropper.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: chrome/browser/devtools/devtools_eye_dropper.cc
diff --git a/chrome/browser/devtools/devtools_eye_dropper.cc b/chrome/browser/devtools/devtools_eye_dropper.cc
index ca08c13d1f3d9de04192534512df929cd5df0289..bb38173b238039ef5f848f0a6c914dc224cc19fd 100644
--- a/chrome/browser/devtools/devtools_eye_dropper.cc
+++ b/chrome/browser/devtools/devtools_eye_dropper.cc
@@ -126,7 +126,6 @@ bool DevToolsEyeDropper::HandleMouseEvent(const blink::WebMouseEvent& event) {
return true;
}
- SkAutoLockPixels lock_image(frame_);
SkColor sk_color = frame_.getColor(last_cursor_x_, last_cursor_y_);
callback_.Run(SkColorGetR(sk_color), SkColorGetG(sk_color),
SkColorGetB(sk_color), SkColorGetA(sk_color));

Powered by Google App Engine
This is Rietveld 408576698