Lines Matching refs:height
27 int height = visible_size.height();
31 return gfx::Size(width & ~1, height);
42 // Clamp in case source frame has smaller height.
146 y += view_area.height();
147 ptr += stride * view_area.height();
159 DCHECK(!(view_area.height() & 1));
167 view_area.height() / 2);
176 int height,
180 DCHECK((width > 0) && (height > 0) &&
181 ((width & 1) == 0) && ((height & 1) == 0) &&
191 int num_rows = height;
208 dest += height * width - 1;
215 dest += width * (height - 1);
216 for (int row = 0; row < height; ++row) {
222 memcpy(dest, src, width * height);
228 if (width > height) {
229 offset = (width - height) / 2;
231 num_rows = num_cols = height;
233 offset = (height - width) / 2;
242 dest += (width > height ? width * (height - 1) + offset :
243 width * (height - offset - 1));
245 dest += (width > height ? offset : width * offset);
249 dest += (width > height ? width * height - offset - 1 :
250 width * (height - offset) - 1);
252 dest += (width > height ? width - offset - 1 :
280 int64 x = static_cast<int64>(content.width()) * bounds.height();
281 int64 y = static_cast<int64>(content.height()) * bounds.width();
283 gfx::Size letterbox(bounds.width(), bounds.height());
287 letterbox.set_width(static_cast<int>(x / content.height()));
317 region_in_frame.height(),