Lines Matching defs:aspect
34 float aspect = static_cast<float>(size.width()) / size.height();
35 DCHECK_GT(aspect, 0.0f);
36 map_[MapKey(aspect, size.width())] = image;
66 // Get the best-sized image with the aspect ratio.
71 // Find the two aspect ratios on either side of |desired_aspect|.
76 greater_or_equal->first.aspect() == desired_aspect) {
81 // aspect ratio >= |desired_aspect|, and |less_than| will point to the last
82 // image with aspect ratio < |desired_aspect|.
87 float thinner_aspect = less_than->first.aspect();
91 float wider_aspect = greater_or_equal->first.aspect();
98 // No aspect ratio is less than or equal to |desired_aspect|.
100 float wider_aspect = greater_or_equal->first.aspect();
110 const gfx::Image* ImageFamily::GetWithExactAspect(float aspect,
112 // Find the two images of given aspect ratio on either side of |width|.
114 map_.lower_bound(MapKey(aspect, width));
116 greater_or_equal->first.aspect() == aspect) {
124 // This must be true because there must be at least one image with |aspect|.
125 DCHECK_EQ(less_than->first.aspect(), aspect);