diff options
Diffstat (limited to 'gfx/skia/skia/src/core/SkBBHFactory.cpp')
-rw-r--r-- | gfx/skia/skia/src/core/SkBBHFactory.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gfx/skia/skia/src/core/SkBBHFactory.cpp b/gfx/skia/skia/src/core/SkBBHFactory.cpp new file mode 100644 index 0000000000..18853a0052 --- /dev/null +++ b/gfx/skia/skia/src/core/SkBBHFactory.cpp @@ -0,0 +1,18 @@ +/* + * Copyright 2014 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "include/core/SkBBHFactory.h" +#include "src/core/SkRTree.h" + +sk_sp<SkBBoxHierarchy> SkRTreeFactory::operator()() const { + return sk_make_sp<SkRTree>(); +} + +void SkBBoxHierarchy::insert(const SkRect rects[], const Metadata[], int N) { + // Ignore Metadata. + this->insert(rects, N); +} |