Chromium Code Reviews| Index: src/core/SkBBHFactory.cpp |
| diff --git a/src/core/SkBBHFactory.cpp b/src/core/SkBBHFactory.cpp |
| index c895ff60fbc83be722c2ebce76b70c0260d9a284..651e9d501a5bdf837ad540baa2a56030e932940d 100644 |
| --- a/src/core/SkBBHFactory.cpp |
| +++ b/src/core/SkBBHFactory.cpp |
| @@ -11,17 +11,9 @@ |
| SkBBoxHierarchy* SkRTreeFactory::operator()(int width, int height) const { |
|
robertphillips
2014/11/18 16:02:15
single line ?
|
| - // These values were empirically determined to produce reasonable |
| - // performance in most cases. |
| - static const int kRTreeMinChildren = 6; |
| - static const int kRTreeMaxChildren = 11; |
| - |
| SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(width), |
| SkIntToScalar(height)); |
| - bool sortDraws = false; // Do not sort draw calls when bulk loading. |
| - |
| - return SkRTree::Create(kRTreeMinChildren, kRTreeMaxChildren, |
| - aspectRatio, sortDraws); |
| + return SkNEW_ARGS(SkRTree, (aspectRatio)); |
| } |
| SkBBoxHierarchy* SkTileGridFactory::operator()(int width, int height) const { |