Searched refs:maxDiagonal (Results 1 – 1 of 1) sorted by relevance
105 float maxDiagonal = static_cast<float>(std::min(kBenchWidth, kBenchHeight)); in clampShapeSize() local108 if (diagonal > maxDiagonal) { in clampShapeSize()109 fShapesSize.fWidth = static_cast<int>(fShapesSize.width() * maxDiagonal / diagonal); in clampShapeSize()110 fShapesSize.fHeight = static_cast<int>(fShapesSize.height() * maxDiagonal / diagonal); in clampShapeSize()