Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skgpu::graphite::BoundsManager Class Referenceabstract

#include <BoundsManager.h>

Inheritance diagram for skgpu::graphite::BoundsManager:
skgpu::graphite::BruteForceBoundsManager skgpu::graphite::GridBoundsManager skgpu::graphite::HybridBoundsManager skgpu::graphite::NaiveBoundsManager

Public Member Functions

virtual ~BoundsManager ()
 
virtual CompressedPaintersOrder getMostRecentDraw (const Rect &bounds) const =0
 
virtual void recordDraw (const Rect &bounds, CompressedPaintersOrder order)=0
 
virtual void reset ()=0
 

Detailed Description

BoundsManager is an acceleration structure for device-space related pixel bounds queries. The BoundsManager tracks a single ordinal value per bounds: the CompressedPaintersOrder of a draw The CompressedPaintersOrder enforces a specific submission order of draws to the GPU but can re-arrange draws out of their original painter's order if the GREATER depth test and the draw's Z value resolve out-of-order rendering.

It supports querying the most recent draw intersecting a bounding rect (represented as a CompressedPaintersOrder value), and recording a (bounds, CompressedPaintersOrder) pair.

Definition at line 33 of file BoundsManager.h.

Constructor & Destructor Documentation

◆ ~BoundsManager()

virtual skgpu::graphite::BoundsManager::~BoundsManager ( )
inlinevirtual

Definition at line 35 of file BoundsManager.h.

35{}

Member Function Documentation

◆ getMostRecentDraw()

virtual CompressedPaintersOrder skgpu::graphite::BoundsManager::getMostRecentDraw ( const Rect bounds) const
pure virtual

◆ recordDraw()

virtual void skgpu::graphite::BoundsManager::recordDraw ( const Rect bounds,
CompressedPaintersOrder  order 
)
pure virtual

◆ reset()

virtual void skgpu::graphite::BoundsManager::reset ( )
pure virtual

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