Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
skgpu::graphite::SimpleIntersectionTree Class Reference

Public Member Functions

bool add (SkRect rect)
 

Detailed Description

Definition at line 14 of file IntersectionTreeTest.cpp.

Member Function Documentation

◆ add()

bool skgpu::graphite::SimpleIntersectionTree::add ( SkRect  rect)
inline

Definition at line 16 of file IntersectionTreeTest.cpp.

16 {
17 for (const SkRect& r : fRects) {
18 if (r.intersects(rect)) {
19 return false;
20 }
21 }
22 fRects.push_back(rect);
23 return true;
24 }

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