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

Unified Diff: components/favicon_base/select_favicon_frames_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: components/favicon_base/select_favicon_frames_unittest.cc
diff --git a/components/favicon_base/select_favicon_frames_unittest.cc b/components/favicon_base/select_favicon_frames_unittest.cc
index 4fe404459c1840dee3eb171cc4501030c7c09131..f2a6f542754d8e56affaec707a01bd344f98c7b7 100644
--- a/components/favicon_base/select_favicon_frames_unittest.cc
+++ b/components/favicon_base/select_favicon_frames_unittest.cc
@@ -59,9 +59,7 @@ SkColor GetColor(const gfx::ImageSkia& image, float scale,
x = bitmap.width() / 2;
if (y == -1)
y = bitmap.width() / 2;
- bitmap.lockPixels();
SkColor color = bitmap.getColor(x, y);
- bitmap.unlockPixels();
return color;
}
« no previous file with comments | « components/display_compositor/gl_helper_unittest.cc ('k') | components/history/core/browser/history_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698