Index: src/core/SkRTree.cpp |
diff --git a/src/core/SkRTree.cpp b/src/core/SkRTree.cpp |
index 253a7ee1d44f53b51989b8d0cf879e5c168fca89..fe08437da3633e4e7e0f1e585b10aac93e7fad50 100644 |
--- a/src/core/SkRTree.cpp |
+++ b/src/core/SkRTree.cpp |
@@ -345,9 +345,9 @@ SkRTree::Branch SkRTree::bulkLoad(SkTDArray<Branch>* branches, int level) { |
} |
} |
- int numStrips = SkScalarCeil(SkScalarSqrt(SkIntToScalar(numBranches) * |
+ int numStrips = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(numBranches) * |
SkScalarInvert(fAspectRatio))); |
- int numTiles = SkScalarCeil(SkIntToScalar(numBranches) / |
+ int numTiles = SkScalarCeilToInt(SkIntToScalar(numBranches) / |
SkIntToScalar(numStrips)); |
int currentBranch = 0; |