• Home
  • Raw
  • Download

Lines Matching refs:x_scale

272                                  float x_scale,  in ScaleToEnclosingRect()  argument
274 if (x_scale == 1.f && y_scale == 1.f) in ScaleToEnclosingRect()
281 std::floor(rect.x() * x_scale))); in ScaleToEnclosingRect()
285 std::ceil(rect.right() * x_scale))); in ScaleToEnclosingRect()
288 int x = static_cast<int>(std::floor(rect.x() * x_scale)); in ScaleToEnclosingRect()
291 x : static_cast<int>(std::ceil(rect.right() * x_scale)); in ScaleToEnclosingRect()
304 float x_scale, in ScaleToEnclosingRectSafe() argument
306 if (x_scale == 1.f && y_scale == 1.f) in ScaleToEnclosingRectSafe()
308 int x = base::saturated_cast<int>(std::floor(rect.x() * x_scale)); in ScaleToEnclosingRectSafe()
310 int w = base::saturated_cast<int>(std::ceil(rect.width() * x_scale)); in ScaleToEnclosingRectSafe()
320 float x_scale, in ScaleToEnclosedRect() argument
322 if (x_scale == 1.f && y_scale == 1.f) in ScaleToEnclosedRect()
325 std::ceil(rect.x() * x_scale))); in ScaleToEnclosedRect()
329 std::floor(rect.right() * x_scale))); in ScaleToEnclosedRect()
332 int x = static_cast<int>(std::ceil(rect.x() * x_scale)); in ScaleToEnclosedRect()
335 x : static_cast<int>(std::floor(rect.right() * x_scale)); in ScaleToEnclosedRect()
351 inline Rect ScaleToRoundedRect(const Rect& rect, float x_scale, float y_scale) { in ScaleToRoundedRect() argument
352 if (x_scale == 1.f && y_scale == 1.f) in ScaleToRoundedRect()
356 base::IsValueInRangeForNumericType<int>(std::round(rect.x() * x_scale))); in ScaleToRoundedRect()
360 std::round(rect.right() * x_scale))); in ScaleToRoundedRect()
364 int x = static_cast<int>(std::round(rect.x() * x_scale)); in ScaleToRoundedRect()
368 : static_cast<int>(std::round(rect.right() * x_scale)); in ScaleToRoundedRect()