8 #ifndef SkBBHFactory_DEFINED
9 #define SkBBHFactory_DEFINED
35 virtual void search(
const SkRect& query, std::vector<int>* results)
const = 0;
Definition: SkBBHFactory.h:48
SkBBHFactory(const SkBBHFactory &)=delete
virtual sk_sp< SkBBoxHierarchy > operator()() const =0
Allocate a new SkBBoxHierarchy.
SkBBHFactory & operator=(const SkBBHFactory &)=delete
virtual ~SkBBHFactory()
Definition: SkBBHFactory.h:54
Definition: SkBBHFactory.h:20
virtual void insert(const SkRect[], const Metadata[], int N)
SkBBoxHierarchy & operator=(const SkBBoxHierarchy &)=delete
virtual size_t bytesUsed() const =0
Return approximate size in memory of *this.
virtual void search(const SkRect &query, std::vector< int > *results) const =0
Populate results with the indices of bounding boxes intersecting that query.
virtual void insert(const SkRect[], int N)=0
Insert N bounding boxes into the hierarchy.
SkBBoxHierarchy()=default
SkBBoxHierarchy(const SkBBoxHierarchy &)=delete
Definition: SkBBHFactory.h:62
sk_sp< SkBBoxHierarchy > operator()() const override
Allocate a new SkBBoxHierarchy.
Definition: SkRefCnt.h:119
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582