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

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

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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"
11 #include "ui/gfx/geometry/size_conversions.h"
11 #include "ui/gfx/image/image_skia.h" 12 #include "ui/gfx/image/image_skia.h"
12 #include "ui/gfx/screen.h" 13 #include "ui/gfx/screen.h"
13 #include "ui/gfx/scrollbar_size.h" 14 #include "ui/gfx/scrollbar_size.h"
14 #include "ui/gfx/size_conversions.h"
15 #include "ui/gfx/skbitmap_operations.h" 15 #include "ui/gfx/skbitmap_operations.h"
16 16
17 namespace { 17 namespace {
18 static const char kThumbnailHistogramName[] = "Thumbnail.ComputeMS"; 18 static const char kThumbnailHistogramName[] = "Thumbnail.ComputeMS";
19 } 19 }
20 20
21 namespace thumbnails { 21 namespace thumbnails {
22 22
23 SimpleThumbnailCrop::SimpleThumbnailCrop(const gfx::Size& target_size) 23 SimpleThumbnailCrop::SimpleThumbnailCrop(const gfx::Size& target_size)
24 : target_size_(target_size) { 24 : target_size_(target_size) {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 clipped_bitmap.height() == result.height()) 226 clipped_bitmap.height() == result.height())
227 clipped_bitmap.copyTo(&result, kN32_SkColorType); 227 clipped_bitmap.copyTo(&result, kN32_SkColorType);
228 #endif 228 #endif
229 229
230 LOCAL_HISTOGRAM_TIMES(kThumbnailHistogramName, 230 LOCAL_HISTOGRAM_TIMES(kThumbnailHistogramName,
231 base::TimeTicks::Now() - begin_compute_thumbnail); 231 base::TimeTicks::Now() - begin_compute_thumbnail);
232 return result; 232 return result;
233 } 233 }
234 234
235 } // namespace thumbnails 235 } // namespace thumbnails
OLDNEW
« no previous file with comments | « chrome/browser/thumbnails/content_based_thumbnailing_algorithm.cc ('k') | chrome/browser/thumbnails/thumbnail_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698