Remove SkMaxScalar and SkMinScalar
Use std::max and std::min instead
Change-Id: Icf3796609e5cb511687fb50bd31229ae4b6b9b39
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/268841
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/utils/SkPatchUtils.cpp b/src/utils/SkPatchUtils.cpp
index 9387331..30e807b 100644
--- a/src/utils/SkPatchUtils.cpp
+++ b/src/utils/SkPatchUtils.cpp
@@ -182,8 +182,8 @@
}
// Level of detail per axis, based on the larger side between top and bottom or left and right
- int lodX = static_cast<int>(SkMaxScalar(topLength, bottomLength) / kPartitionSize);
- int lodY = static_cast<int>(SkMaxScalar(leftLength, rightLength) / kPartitionSize);
+ int lodX = static_cast<int>(std::max(topLength, bottomLength) / kPartitionSize);
+ int lodY = static_cast<int>(std::max(leftLength, rightLength) / kPartitionSize);
return SkISize::Make(SkMax32(8, lodX), SkMax32(8, lodY));
}