27 return _data_size_bytes;
50 return (_residency_state & BufferResidencyTracker::S_active) != 0;
62 return (_residency_state & BufferResidencyTracker::S_resident) != 0;
75 _residency_state |= BufferResidencyTracker::S_active;
78 _residency_state |= BufferResidencyTracker::S_resident;
82 set_owning_chain(&_residency->_chains[_residency_state]);
95 _residency_state |= BufferResidencyTracker::S_resident;
99 set_owning_chain(&_residency->_chains[_residency_state]);
127 _owning_chain->adjust_bytes((
int)new_data_size_bytes - (
int)_data_size_bytes);
129 _data_size_bytes = new_data_size_bytes;
140 _modified = new_modified;
BufferContext * get_next() const
This can be used along with BufferContextChain::get_first() to walk through the list of objects store...
UpdateSeq get_modified() const
Returns the UpdateSeq that was recorded the last time mark_loaded() was called.
This is a base class for those kinds of SavedContexts that occupy an easily-measured (and substantial...
This class is used to keep track of the current state of all the BufferContexts for a particular grap...
void update_data_size_bytes(size_t new_data_size_bytes)
Should be called (usually by a derived class) when the on-card size of this object has changed...
This class maintains a linked list of BufferContexts that might be allocated on the graphics card in ...
bool get_resident() const
Returns the resident flag associated with this object.
void set_resident(bool flag)
Changes the resident flag associated with this object.
bool get_active() const
Returns the active flag associated with this object.
size_t get_data_size_bytes() const
Returns the number of bytes previously reported for the data object.
void set_active(bool flag)
Changes the active flag associated with this object.
void update_modified(UpdateSeq new_modified)
Should be called (usually by a derived class) when the modified counter for this object has changed...
This is a sequence number that increments monotonically.