Panda3D
|
Public Member Functions | |
TinyTextureContext (PreparedGraphicsObjects *pgo, Texture *tex, int view) | |
virtual void | evict_lru () |
Evicts the page from the LRU. | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Public Attributes | |
GLTexture | _gltex |
Definition at line 27 of file tinyTextureContext.h.
void TinyTextureContext::evict_lru | ( | ) | [virtual] |
Evicts the page from the LRU.
Called internally when the LRU determines that it is full. May also be called externally when necessary to explicitly evict the page.
It is legal for this method to either evict the page as requested, do nothing (in which case the eviction will be requested again at the next epoch), or requeue itself on the tail of the queue (in which case the eviction will be requested again much later).
Reimplemented from AdaptiveLruPage.
Definition at line 36 of file tinyTextureContext.cxx.
References AdaptiveLruPage::dequeue_lru(), TextureContext::mark_unloaded(), and TextureContext::update_data_size_bytes().
static void TinyTextureContext::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from TextureContext.
Definition at line 42 of file tinyTextureContext.h.
References TextureContext::init_type().