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

Unified Diff: chrome/browser/thumbnails/content_analysis_unittest.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/thumbnails/content_analysis_unittest.cc
diff --git a/chrome/browser/thumbnails/content_analysis_unittest.cc b/chrome/browser/thumbnails/content_analysis_unittest.cc
index 547c51a45a7516e5cff9bd73e6c476592bcb8b20..387da01ec4fec0dcefa5f5ff84c5dfbba5425693 100644
--- a/chrome/browser/thumbnails/content_analysis_unittest.cc
+++ b/chrome/browser/thumbnails/content_analysis_unittest.cc
@@ -54,8 +54,6 @@ bool CompareImageFragments(const SkBitmap& bitmap_left,
const gfx::Size& comparison_area,
const gfx::Point& origin_left,
const gfx::Point& origin_right) {
- SkAutoLockPixels left_lock(bitmap_left);
- SkAutoLockPixels right_lock(bitmap_right);
for (int r = 0; r < comparison_area.height(); ++r) {
for (int c = 0; c < comparison_area.width(); ++c) {
SkColor color_left = bitmap_left.getColor(origin_left.x() + c,

Powered by Google App Engine
This is Rietveld 408576698