Home
last modified time | relevance | path

Searched refs:maxDiagonal (Results 1 – 1 of 1) sorted by relevance

/third_party/skia/bench/
DShapesBench.cpp105 float maxDiagonal = static_cast<float>(std::min(kBenchWidth, kBenchHeight)); in clampShapeSize() local
108 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()