Searched refs:source_bitmap (Results 1 - 11 of 11) sorted by relevance

/external/chromium_org/chrome/browser/thumbnails/
H A Dcontent_based_thumbnailing_algorithm.cc27 const SkBitmap& source_bitmap) {
28 callback.Run(*context.get(), source_bitmap);
70 SkBitmap source_bitmap = local
76 if (source_bitmap.width() <= target_thumbnail_size.width() ||
77 source_bitmap.height() <= target_thumbnail_size.height()) {
79 SimpleThumbnailCrop::CalculateBoringScore(source_bitmap);
86 callback.Run(*context.get(), source_bitmap);
93 source_bitmap,
155 const SkBitmap& source_bitmap,
163 source_bitmap, thumbnail_siz
24 CallbackInvocationAdapter( const thumbnails::ThumbnailingAlgorithm::ConsumerCallback& callback, scoped_refptr<thumbnails::ThumbnailingContext> context, const SkBitmap& source_bitmap) argument
154 CreateRetargetedThumbnail( const SkBitmap& source_bitmap, const gfx::Size& thumbnail_size, scoped_refptr<ThumbnailingContext> context, const ConsumerCallback& callback) argument
[all...]
H A Dcontent_analysis.h74 // |source_bitmap|. The |target_size| is used to estimate some computation
79 SkBitmap CreateRetargetedThumbnailImage(const SkBitmap& source_bitmap,
H A Dcontent_based_thumbnailing_algorithm.h36 // The function processes |source_bitmap| into a thumbnail of |thumbnail_size|
40 const SkBitmap& source_bitmap,
H A Dcontent_analysis.cc721 const SkBitmap& source_bitmap,
724 // First thing we need for this method is to color-reduce the source_bitmap.
726 reduced_color.allocPixels(SkImageInfo::MakeA8(source_bitmap.width(),
727 source_bitmap.height()));
729 if (!color_utils::ComputePrincipalComponentImage(source_bitmap,
734 source_bitmap, transform, true, &reduced_color)) {
766 return ComputeDecimatedImage(source_bitmap, included_rows, included_columns);
720 CreateRetargetedThumbnailImage( const SkBitmap& source_bitmap, const gfx::Size& target_size, float kernel_sigma) argument
/external/chromium_org/ui/gfx/
H A Dcolor_analysis.h114 // |source_bitmap|. The result is put into |target_bitmap|, which is expected
119 GFX_EXPORT bool ApplyColorReduction(const SkBitmap& source_bitmap,
125 // the |source_bitmap|. The result is stored in |target_bitmap|, which must be
130 GFX_EXPORT bool ComputePrincipalComponentImage(const SkBitmap& source_bitmap,
H A Dcolor_analysis.cc492 bool ApplyColorReduction(const SkBitmap& source_bitmap, argument
497 SkAutoLockPixels source_lock(source_bitmap);
500 DCHECK(source_bitmap.getPixels());
502 DCHECK_EQ(kN32_SkColorType, source_bitmap.colorType());
504 DCHECK_EQ(source_bitmap.height(), target_bitmap->height());
505 DCHECK_EQ(source_bitmap.width(), target_bitmap->width());
506 DCHECK(!source_bitmap.empty());
521 for (int y = 0; y < source_bitmap.height(); ++y) {
523 source_bitmap.getAddr32(0, y));
524 for (int x = 0; x < source_bitmap
580 ComputePrincipalComponentImage(const SkBitmap& source_bitmap, SkBitmap* target_bitmap) argument
[all...]
/external/chromium_org/chrome/browser/profiles/
H A Dprofile_avatar_icon_util.cc268 SkBitmap GetAvatarIconAsSquare(const SkBitmap& source_bitmap, argument
271 if ((source_bitmap.width() == scale_factor * profiles::kAvatarIconWidth) &&
272 (source_bitmap.height() == scale_factor * profiles::kAvatarIconHeight)) {
273 // Shave a couple of columns so the |source_bitmap| is more square. So when
278 source_bitmap.extractSubset(&square_bitmap, gfx::RectToSkIRect(frame));
281 DCHECK(source_bitmap.width() == source_bitmap.height());
282 square_bitmap = source_bitmap;
H A Dprofile_avatar_icon_util.h93 SkBitmap GetAvatarIconAsSquare(const SkBitmap& source_bitmap, int scale_factor);
H A Dprofile_shortcut_manager_win.cc113 SkBitmap source_bitmap = local
121 source_bitmap, skia::ImageOperations::RESIZE_LANCZOS3, avatar_badge_size,
122 source_bitmap.height() * avatar_badge_size / source_bitmap.width());
/external/chromium_org/components/favicon_base/
H A Dselect_favicon_frames.cc151 // Resize |source_bitmap|
152 SkBitmap GetResizedBitmap(const SkBitmap& source_bitmap, argument
158 return source_bitmap;
162 return SampleNearestNeighbor(source_bitmap, desired_size_in_pixel);
164 return skia::ImageOperations::Resize(source_bitmap,
/external/chromium_org/chrome/browser/themes/
H A Dbrowser_theme_pack.cc471 SkBitmap CreateLowQualityResizedBitmap(const SkBitmap& source_bitmap, argument
475 gfx::ScaleSize(gfx::Size(source_bitmap.width(),
476 source_bitmap.height()),
486 canvas.drawBitmapRect(source_bitmap, NULL, scaled_bounds);

Completed in 285 milliseconds