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

Side by Side Diff: chrome/browser/thumbnails/simple_thumbnail_crop.cc

Issue 484603006: Add LOCAL_ prefix to non-UMA histogram macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/thumbnails/simple_thumbnail_crop.h" 5 #include "chrome/browser/thumbnails/simple_thumbnail_crop.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "skia/ext/platform_canvas.h" 9 #include "skia/ext/platform_canvas.h"
10 #include "ui/gfx/color_utils.h" 10 #include "ui/gfx/color_utils.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // any native platform resources that can't be refounted, so this issue does 231 // any native platform resources that can't be refounted, so this issue does
232 // not occur. 232 // not occur.
233 // 233 //
234 // Note that GetClippedBitmap() does extractSubset() but it won't copy 234 // Note that GetClippedBitmap() does extractSubset() but it won't copy
235 // the pixels, hence we check result size == clipped_bitmap size here. 235 // the pixels, hence we check result size == clipped_bitmap size here.
236 if (clipped_bitmap.width() == result.width() && 236 if (clipped_bitmap.width() == result.width() &&
237 clipped_bitmap.height() == result.height()) 237 clipped_bitmap.height() == result.height())
238 clipped_bitmap.copyTo(&result, kN32_SkColorType); 238 clipped_bitmap.copyTo(&result, kN32_SkColorType);
239 #endif 239 #endif
240 240
241 HISTOGRAM_TIMES(kThumbnailHistogramName, 241 LOCAL_HISTOGRAM_TIMES(kThumbnailHistogramName,
242 base::TimeTicks::Now() - begin_compute_thumbnail); 242 base::TimeTicks::Now() - begin_compute_thumbnail);
243 return result; 243 return result;
244 } 244 }
245 245
246 } // namespace thumbnails 246 } // namespace thumbnails
OLDNEW
« no previous file with comments | « chrome/browser/thumbnails/content_based_thumbnailing_algorithm.cc ('k') | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698