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

Side by Side Diff: chrome/browser/thumbnails/content_analysis.h

Issue 15458003: Plugs in the new thumbnailing algorithm to ThumbnailTabHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed up a compile problem (indpendent change). Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/thumbnails/content_analysis.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_ 5 #ifndef CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_
6 #define CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_ 6 #define CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 SkBitmap ComputeDecimatedImage(const SkBitmap& bitmap, 50 SkBitmap ComputeDecimatedImage(const SkBitmap& bitmap,
51 const std::vector<bool>& rows, 51 const std::vector<bool>& rows,
52 const std::vector<bool>& columns); 52 const std::vector<bool>& columns);
53 53
54 // Creates a new bitmap which contains only 'interesting' areas of 54 // Creates a new bitmap which contains only 'interesting' areas of
55 // |source_bitmap|. The |target_size| is used to estimate some computation 55 // |source_bitmap|. The |target_size| is used to estimate some computation
56 // parameters, but the resulting bitmap will not necessarily be of that size. 56 // parameters, but the resulting bitmap will not necessarily be of that size.
57 // |kernel_sigma| defines the degree of image smoothing in gradient computation. 57 // |kernel_sigma| defines the degree of image smoothing in gradient computation.
58 // For a natural-sized (not shrunk) screenshot at 96 DPI and regular font size 58 // For a natural-sized (not shrunk) screenshot at 96 DPI and regular font size
59 // 5.0 was determined to be a good value. 59 // 5.0 was determined to be a good value.
60 SkBitmap CreateRetargettedThumbnailImage(const SkBitmap& source_bitmap, 60 SkBitmap CreateRetargetedThumbnailImage(const SkBitmap& source_bitmap,
61 const gfx::Size& target_size, 61 const gfx::Size& target_size,
62 float kernel_sigma); 62 float kernel_sigma);
63 63
64 } // namespace thumbnailing_utils 64 } // namespace thumbnailing_utils
65 65
66 #endif // CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_ 66 #endif // CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/thumbnails/content_analysis.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698