8#ifndef skgpu_graphite_geom_IntersectionTree_DEFINED
9#define skgpu_graphite_geom_IntersectionTree_DEFINED
33 if (
rect.isEmptyNegativeOrNaN()) {
37 if (!fRoot->intersects(
rect)) {
38 fRoot = fRoot->addNonIntersecting(
rect, &fArena);
47 virtual ~Node() =
default;
49 virtual bool intersects(
Rect) = 0;
53 template<SplitType kSplitType>
class TreeNode;
58 constexpr static int kTreeNodeSize =
SkAlignTo(
sizeof(
void*) +
sizeof(
float),
alignof(
void*)) +
60 constexpr static int kLeafNodeSize = 16 + (2 + 64) *
sizeof(
Rect);
static constexpr size_t SkAlignTo(size_t x, size_t alignment)
sk_sp< SkBlender > blender SkRect rect