aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-10 18:11:17 +0000
committerGravatar rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-10 18:11:17 +0000
commit0ab786515fea21a3427095948a372f185400c7d3 (patch)
tree89c0eff189b71cfe585bca6245de3c976b7fbf42
parentb839f0f6a92db9bcdbf8aa8004f20b0c0000111c (diff)
Fix bug in R-Tree bulk-load. Unreviewed.
git-svn-id: http://skia.googlecode.com/svn/trunk@5468 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/core/SkRTree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkRTree.cpp b/src/core/SkRTree.cpp
index c6f0d60d1c..b6ff29b8c4 100644
--- a/src/core/SkRTree.cpp
+++ b/src/core/SkRTree.cpp
@@ -342,8 +342,8 @@ SkRTree::Branch SkRTree::bulkLoad(SkTDArray<Branch>* branches, int level) {
int numStrips = SkScalarCeil(SkScalarSqrt(SkIntToScalar(numBranches) *
SkScalarInvert(fAspectRatio)));
- int numTiles = SkScalarCeil(SkScalarSqrt(SkIntToScalar(numBranches) /
- SkIntToScalar(numStrips)));
+ int numTiles = SkScalarCeil(SkIntToScalar(numBranches) /
+ SkIntToScalar(numStrips));
int currentBranch = 0;
for (int i = 0; i < numStrips; ++i) {