xref: /aosp_15_r20/external/skia/src/core/SkBBHFactory.cpp (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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 "include/core/SkBBHFactory.h"
9 
10 #include "include/core/SkRect.h"
11 #include "src/core/SkRTree.h"
12 
operator ()() const13 sk_sp<SkBBoxHierarchy> SkRTreeFactory::operator()() const {
14     return sk_make_sp<SkRTree>();
15 }
16 
insert(const SkRect rects[],const Metadata[],int N)17 void SkBBoxHierarchy::insert(const SkRect rects[], const Metadata[], int N) {
18     // Ignore Metadata.
19     this->insert(rects, N);
20 }
21