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

/external/chromium_org/ui/native_theme/
H A Dnative_theme_base.cc888 gfx::ImageSkia* bar_image = rb.GetImageSkiaNamed(IDR_PROGRESS_BAR); local
894 DCHECK(bar_image->width() > 0);
897 float tile_scale_y = static_cast<float>(rect.height()) / bar_image->height();
916 int new_tile_width = static_cast<int>(bar_image->width() * tile_scale_y);
919 float tile_scale_x = static_cast<float>(new_tile_width) / bar_image->width();
921 DrawTiledImage(canvas, *bar_image, 0, 0, tile_scale_x, tile_scale_y,
932 float small_scale_x = static_cast<float>(small_width) / bar_image->width();
940 DrawTiledImage(canvas, *bar_image, 0, 0, big_scale_x, tile_scale_y,
942 DrawTiledImage(canvas, *bar_image, 0, 0, small_scale_x, tile_scale_y,

Completed in 1066 milliseconds