1/*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "SkBBHFactory.h"
9#include "SkRTree.h"
10
11SkBBoxHierarchy* SkRTreeFactory::operator()(const SkRect& bounds) const {
12    SkScalar aspectRatio = bounds.width() / bounds.height();
13    return SkNEW_ARGS(SkRTree, (aspectRatio));
14}
15