Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
CountingBBH Struct Reference
Inheritance diagram for CountingBBH:
SkBBoxHierarchy SkRefCnt SkRefCntBase

Public Member Functions

 CountingBBH ()
 
void search (const SkRect &query, std::vector< int > *results) const override
 
void insert (const SkRect[], int) override
 
size_t bytesUsed () const override
 
- Public Member Functions inherited from SkBBoxHierarchy
virtual void insert (const SkRect[], int N)=0
 
virtual void insert (const SkRect[], const Metadata[], int N)
 
virtual void search (const SkRect &query, std::vector< int > *results) const =0
 
virtual size_t bytesUsed () const =0
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Public Attributes

int searchCalls
 

Additional Inherited Members

- Protected Member Functions inherited from SkBBoxHierarchy
 SkBBoxHierarchy ()=default
 
 SkBBoxHierarchy (const SkBBoxHierarchy &)=delete
 
SkBBoxHierarchyoperator= (const SkBBoxHierarchy &)=delete
 

Detailed Description

Definition at line 613 of file PictureTest.cpp.

Constructor & Destructor Documentation

◆ CountingBBH()

CountingBBH::CountingBBH ( )
inline

Definition at line 616 of file PictureTest.cpp.

616: searchCalls(0) {}

Member Function Documentation

◆ bytesUsed()

size_t CountingBBH::bytesUsed ( ) const
inlineoverridevirtual

Return approximate size in memory of *this.

Implements SkBBoxHierarchy.

Definition at line 623 of file PictureTest.cpp.

623{ return 0; }

◆ insert()

void CountingBBH::insert ( const  SkRect[],
int  N 
)
inlineoverridevirtual

Insert N bounding boxes into the hierarchy.

Implements SkBBoxHierarchy.

Definition at line 622 of file PictureTest.cpp.

622{}

◆ search()

void CountingBBH::search ( const SkRect query,
std::vector< int > *  results 
) const
inlineoverridevirtual

Populate results with the indices of bounding boxes intersecting that query.

Implements SkBBoxHierarchy.

Definition at line 618 of file PictureTest.cpp.

618 {
619 this->searchCalls++;
620 }

Member Data Documentation

◆ searchCalls

int CountingBBH::searchCalls
mutable

Definition at line 614 of file PictureTest.cpp.


The documentation for this struct was generated from the following file: