// TODO(kjlubick) fix client users and then make this a forward declare #include"include/core/SkRect.h"// IWYU pragma: keep
#include <cstddef> #include <vector>
class SkBBoxHierarchy : public SkRefCnt { public: struct Metadata { bool isDraw; // The corresponding SkRect bounds a draw command, not a pure state change.
};
/** * Insert N bounding boxes into the hierarchy.
*/ virtualvoid insert(const SkRect[], int N) = 0; virtualvoid insert(const SkRect[], const Metadata[], int N);
/** * Populate results with the indices of bounding boxes intersecting that query.
*/ virtualvoid search(const SkRect& query, std::vector<int>* results) const = 0;
/** * Return approximate size in memory of *this.
*/ virtual size_t bytesUsed() const = 0;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.