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

Unified Diff: ui/gfx/color_utils.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
« no previous file with comments | « ui/gfx/color_analysis_unittest.cc ('k') | ui/gfx/icon_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_utils.cc
diff --git a/ui/gfx/color_utils.cc b/ui/gfx/color_utils.cc
index 95dea0936c0fc4d35494ef7ed8e450b7873c013f..257990d9680eafee515799cb18999e4887e422e2 100644
--- a/ui/gfx/color_utils.cc
+++ b/ui/gfx/color_utils.cc
@@ -236,8 +236,6 @@ SkColor HSLShift(SkColor color, const HSL& shift) {
void BuildLumaHistogram(const SkBitmap& bitmap, int histogram[256]) {
DCHECK_EQ(kN32_SkColorType, bitmap.colorType());
- SkAutoLockPixels bitmap_lock(bitmap);
-
int pixel_width = bitmap.width();
int pixel_height = bitmap.height();
for (int y = 0; y < pixel_height; ++y) {
« no previous file with comments | « ui/gfx/color_analysis_unittest.cc ('k') | ui/gfx/icon_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698