2904 if (relative.
left() >= current_block_size || relative.
top() >= current_block_size
2914 const CacheInfo &cache_info = it.value();
2916 if (cache_info.loc.channel == channel
2917 && cache_info.loc.rect.left() <= location.
x()
2918 && cache_info.loc.rect.top() <= location.
y()
2919 && cache_info.loc.rect.right() >= location.
x()
2920 && cache_info.loc.rect.bottom() >= location.
y())
2935 }
else if (
occupied_quadtree[channel][node].largest_available_block < current_block_size) {
2938 node = node * 4 + 1;
2940 for (
int sibling = 0; sibling < 4; ++sibling)
QOpenGLPaintEnginePrivate * engine
#define it(className, varName)
void quadtreeInsert(int channel, quint64 key, const QRect &rect, int node=0)
int left() const
Returns the x-coordinate of the rectangle's left edge.
QRect translated(int dx, int dy) const
Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis...
int bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
QHash< Key, T >::iterator find(const Key &key, const T &value)
Returns an iterator pointing to the item with the key and value.
QGLTextureCacheHash cache
int quadtreeBlocksize(int node)
int top() const
Returns the y-coordinate of the rectangle's top edge.
int right() const
Returns the x-coordinate of the rectangle's right edge.
iterator end()
Returns an STL-style iterator pointing to the imaginary item after the last item in the hash...
void cacheItemErased(int channel, const QRect &rect)
QVector< QuadTreeNode > occupied_quadtree[4]
static QTestResult::TestLocation location
The QPoint class defines a point in the plane using integer precision.
void quadtreeClear(int channel, const QRect &rect, int node=0)
The QRect class defines a rectangle in the plane using integer precision.
int y() const
Returns the y coordinate of this point.
QPoint quadtreeLocation(int node)
int x() const
Returns the x coordinate of this point.
iterator erase(iterator it)
Removes the (key, value) pair associated with the iterator pos from the hash, and returns an iterator...