Home | History | Annotate | Download | only in tab_contents

Lines Matching refs:bitmap

74 // bitmap will be isNull if there was an error creating it.
85 // Get the bitmap as a Skia object so we can resample it. This is a large
111 // refcounting. If the bitmap doesn't change, then the downsampler
112 // will return the input bitmap, which will be the reference to the
114 // regular refcounted bitmap, we need to copy it.
378 double ThumbnailGenerator::CalculateBoringScore(SkBitmap* bitmap) {
379 if (bitmap->isNull() || bitmap->empty())
382 color_utils::BuildLumaHistogram(bitmap, histogram);
385 int pixel_count = bitmap->width() * bitmap->height();
389 SkBitmap ThumbnailGenerator::GetClippedBitmap(const SkBitmap& bitmap,
401 if (bitmap.width() < dest_rect.width() ||
402 bitmap.height() < dest_rect.height()) {
412 static_cast<float>(bitmap.width()) / bitmap.height();
416 S16CPU new_width = static_cast<S16CPU>(bitmap.height() * dest_aspect);
417 S16CPU x_offset = (bitmap.width() - new_width) / 2;
418 bitmap.height());
422 src_rect.set(0, 0, bitmap.width(),
423 static_cast<S16CPU>(bitmap.width() / dest_aspect));
427 src_rect.set(0, 0, bitmap.width(), bitmap.height());
434 bitmap.extractSubset(&clipped_bitmap, src_rect);