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

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

Issue 2299993004: Migrate chrome/browser files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 years, 3 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 #include "skia/ext/platform_canvas.h" 11 #include "skia/ext/platform_canvas.h"
12 #include "ui/base/layout.h" 12 #include "ui/base/layout.h"
13 #include "ui/gfx/color_utils.h" 13 #include "ui/gfx/color_utils.h"
14 #include "ui/gfx/geometry/size_conversions.h" 14 #include "ui/gfx/geometry/size_conversions.h"
15 #include "ui/gfx/image/image_skia.h" 15 #include "ui/gfx/image/image_skia.h"
16 #include "ui/gfx/scrollbar_size.h" 16 #include "ui/gfx/scrollbar_size.h"
17 #include "ui/gfx/skbitmap_operations.h" 17 #include "ui/gfx/skbitmap_operations.h"
18 18
19 namespace { 19 namespace {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 clipped_bitmap.height() == result.height()) 195 clipped_bitmap.height() == result.height())
196 clipped_bitmap.copyTo(&result, kN32_SkColorType); 196 clipped_bitmap.copyTo(&result, kN32_SkColorType);
197 #endif 197 #endif
198 198
199 LOCAL_HISTOGRAM_TIMES(kThumbnailHistogramName, 199 LOCAL_HISTOGRAM_TIMES(kThumbnailHistogramName,
200 base::TimeTicks::Now() - begin_compute_thumbnail); 200 base::TimeTicks::Now() - begin_compute_thumbnail);
201 return result; 201 return result;
202 } 202 }
203 203
204 } // namespace thumbnails 204 } // namespace thumbnails
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698