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

Unified Diff: chrome/browser/thumbnails/content_analysis.cc

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, 7 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
Index: chrome/browser/thumbnails/content_analysis.cc
diff --git a/chrome/browser/thumbnails/content_analysis.cc b/chrome/browser/thumbnails/content_analysis.cc
index 230055587f42dc15c67ec6f945f331211f61e68d..3b354cce1265f78d6473c217242073d9b800fff2 100644
--- a/chrome/browser/thumbnails/content_analysis.cc
+++ b/chrome/browser/thumbnails/content_analysis.cc
@@ -72,7 +72,7 @@ void ApplyGaussianGradientMagnitudeFilter(SkBitmap* input_bitmap,
float kernel_sigma) {
// The purpose of this function is to highlight salient
// (attention-attracting?) features of the image for use in image
- // retargetting.
+ // retargeting.
SkAutoLockPixels source_lock(*input_bitmap);
DCHECK(input_bitmap);
DCHECK(input_bitmap->getPixels());
@@ -424,7 +424,7 @@ SkBitmap ComputeDecimatedImage(const SkBitmap& bitmap,
return target;
}
-SkBitmap CreateRetargettedThumbnailImage(
+SkBitmap CreateRetargetedThumbnailImage(
const SkBitmap& source_bitmap,
const gfx::Size& target_size,
float kernel_sigma) {
@@ -441,7 +441,7 @@ SkBitmap CreateRetargettedThumbnailImage(
if (!color_utils::ApplyColorReduction(
source_bitmap, transform, true, &reduced_color)) {
DLOG(WARNING) << "Failed to compute luminance image from a screenshot. "
- << "Cannot compute retargetted thumbnail.";
+ << "Cannot compute retargeted thumbnail.";
return SkBitmap();
}
DLOG(WARNING) << "Could not compute principal color image for a thumbnail. "
« no previous file with comments | « chrome/browser/thumbnails/content_analysis.h ('k') | chrome/browser/thumbnails/content_analysis_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698