KiCad PCB EDA Suite
|
Classes | |
struct | CACHED_BITMAP |
Public Member Functions | |
GL_BITMAP_CACHE () | |
~GL_BITMAP_CACHE () | |
GLuint | RequestBitmap (const BITMAP_BASE *aBitmap) |
Private Member Functions | |
GLuint | cacheBitmap (const BITMAP_BASE *aBitmap) |
Private Attributes | |
const size_t | m_cacheMaxElements = 50 |
const size_t | m_cacheMaxSize = 256 * 1024 * 1024 |
std::map< const KIID, CACHED_BITMAP > | m_bitmaps |
std::list< KIID > | m_cacheLru |
size_t | m_cacheSize |
std::list< GLuint > | m_freedTextureIds |
Definition at line 92 of file opengl_gal.cpp.
|
inline |
Definition at line 95 of file opengl_gal.cpp.
GL_BITMAP_CACHE::~GL_BITMAP_CACHE | ( | ) |
Definition at line 126 of file opengl_gal.cpp.
References m_bitmaps.
|
private |
Definition at line 170 of file opengl_gal.cpp.
References KIGFX::GL_BITMAP_CACHE::CACHED_BITMAP::accessTime, BITMAP_BASE::GetImageID(), BITMAP_BASE::GetOriginalImageData(), KIGFX::GL_BITMAP_CACHE::CACHED_BITMAP::h, KIGFX::GL_BITMAP_CACHE::CACHED_BITMAP::id, m_bitmaps, m_cacheLru, m_cacheMaxElements, m_cacheMaxSize, m_cacheSize, m_freedTextureIds, niluuid, KIGFX::GL_BITMAP_CACHE::CACHED_BITMAP::size, and KIGFX::GL_BITMAP_CACHE::CACHED_BITMAP::w.
Referenced by RequestBitmap().
GLuint GL_BITMAP_CACHE::RequestBitmap | ( | const BITMAP_BASE * | aBitmap | ) |
Definition at line 133 of file opengl_gal.cpp.
References cacheBitmap(), BITMAP_BASE::GetImageID(), m_bitmaps, m_cacheLru, m_cacheSize, and m_freedTextureIds.
|
private |
Definition at line 117 of file opengl_gal.cpp.
Referenced by cacheBitmap(), RequestBitmap(), and ~GL_BITMAP_CACHE().
|
private |
Definition at line 118 of file opengl_gal.cpp.
Referenced by cacheBitmap(), and RequestBitmap().
|
private |
Definition at line 114 of file opengl_gal.cpp.
Referenced by cacheBitmap().
|
private |
Definition at line 115 of file opengl_gal.cpp.
Referenced by cacheBitmap().
|
private |
Definition at line 119 of file opengl_gal.cpp.
Referenced by cacheBitmap(), and RequestBitmap().
|
private |
Definition at line 120 of file opengl_gal.cpp.
Referenced by cacheBitmap(), and RequestBitmap().