Definition at line 27 of file IntersectionTreeBench.cpp.
◆ doBench()
void skgpu::graphite::IntersectionTreeBench::doBench |
( |
| ) |
|
|
inlineprotected |
Definition at line 55 of file IntersectionTreeBench.cpp.
55 {
60 while (rectCount > 0) {
61 IntersectionTree intersectionTree;
62 int collidedCount = 0;
63 for (
int i = 0;
i < rectCount; ++
i) {
64 if (!intersectionTree.add(rects[
i])) {
65 collided[collidedCount++] = rects[
i];
66 }
67 }
71 }
72 rectCount = collidedCount;
74 }
75 }
void swap(sk_sp< T > &a, sk_sp< T > &b)
◆ gatherRects()
virtual void skgpu::graphite::IntersectionTreeBench::gatherRects |
( |
TArray< SkRect > * |
rects | ) |
|
|
protectedpure virtual |
◆ isSuitableFor()
bool skgpu::graphite::IntersectionTreeBench::isSuitableFor |
( |
Backend |
backend | ) |
|
|
inlineoverrideprotectedvirtual |
◆ onDelayedSetup()
void skgpu::graphite::IntersectionTreeBench::onDelayedSetup |
( |
| ) |
|
|
inlinefinalprotectedvirtual |
Reimplemented from Benchmark.
Definition at line 35 of file IntersectionTreeBench.cpp.
35 {
42 }
45 }
T * makeArray(size_t count)
virtual void gatherRects(TArray< SkRect > *rects)=0
SkArenaAlloc fAlignedAllocator
◆ onDraw()
void skgpu::graphite::IntersectionTreeBench::onDraw |
( |
int |
loops, |
|
|
SkCanvas * |
|
|
) |
| |
|
inlinefinalprotectedvirtual |
◆ onGetName()
const char * skgpu::graphite::IntersectionTreeBench::onGetName |
( |
| ) |
|
|
inlinefinalprotectedvirtual |
◆ fAlignedAllocator
SkArenaAlloc skgpu::graphite::IntersectionTreeBench::fAlignedAllocator {0} |
|
protected |
◆ fName
SkString skgpu::graphite::IntersectionTreeBench::fName |
|
protected |
◆ fNumTrees
int skgpu::graphite::IntersectionTreeBench::fNumTrees = 0 |
|
protected |
◆ fRectBufferA
Rect* skgpu::graphite::IntersectionTreeBench::fRectBufferA |
|
protected |
◆ fRectBufferB
Rect* skgpu::graphite::IntersectionTreeBench::fRectBufferB |
|
protected |
◆ fRectCount
int skgpu::graphite::IntersectionTreeBench::fRectCount |
|
protected |
◆ fRects
Rect* skgpu::graphite::IntersectionTreeBench::fRects |
|
protected |
The documentation for this class was generated from the following file: