|
Krita Source Code Documentation
|
#include <kis_chunk_allocator.h>
Public Member Functions | |
| void | debugChunks () |
| qreal | debugFragmentation (bool toStderr=true) |
| void | freeChunk (KisChunk chunk) |
| KisChunk | getChunk (quint64 size) |
| KisChunkAllocator (quint64 slabSize=DEFAULT_SLAB_SIZE, quint64 storeSize=DEFAULT_STORE_SIZE) | |
| quint64 | numChunks () const |
| bool | sanityCheck (bool pleaseCrash=true) |
| ~KisChunkAllocator () | |
Private Member Functions | |
| bool | tryInsertChunk (KisChunkDataList &list, KisChunkDataListIterator &iterator, quint64 size) |
Private Attributes | |
| KisChunkDataListIterator | m_iterator |
| KisChunkDataList | m_list |
| quint64 | m_storeMaxSize |
| quint64 | m_storeSize |
| quint64 | m_storeSlabSize |
Definition at line 116 of file kis_chunk_allocator.h.
| KisChunkAllocator::KisChunkAllocator | ( | quint64 | slabSize = DEFAULT_SLAB_SIZE, |
| quint64 | storeSize = DEFAULT_STORE_SIZE ) |
Definition at line 21 of file kis_chunk_allocator.cpp.
References INIT_FAIL_COUNTER, m_iterator, m_list, m_storeMaxSize, m_storeSize, and m_storeSlabSize.
| KisChunkAllocator::~KisChunkAllocator | ( | ) |
Definition at line 31 of file kis_chunk_allocator.cpp.
| void KisChunkAllocator::debugChunks | ( | ) |
Definition at line 122 of file kis_chunk_allocator.cpp.
References m_list.
| qreal KisChunkAllocator::debugFragmentation | ( | bool | toStderr = true | ) |
Definition at line 161 of file kis_chunk_allocator.cpp.
References DEBUG_FAIL_COUNTER, GAP_SIZE, HAS_PREVIOUS, m_list, m_storeMaxSize, m_storeSize, m_storeSlabSize, and PEEK_PREVIOUS.
Definition at line 104 of file kis_chunk_allocator.cpp.
References KisChunk::begin(), m_iterator, m_list, and KisChunk::position().
| KisChunk KisChunkAllocator::getChunk | ( | quint64 | size | ) |
Definition at line 35 of file kis_chunk_allocator.cpp.
References m_iterator, m_list, m_storeMaxSize, m_storeSize, m_storeSlabSize, REGISTER_FAIL, REGISTER_STEP, START_COUNTING, tryInsertChunk(), and WRAP_PREVIOUS_CHUNK_DATA.
|
inline |
Definition at line 123 of file kis_chunk_allocator.h.
| bool KisChunkAllocator::sanityCheck | ( | bool | pleaseCrash = true | ) |
Definition at line 132 of file kis_chunk_allocator.cpp.
References HAS_PREVIOUS, m_list, m_storeSize, PEEK_PREVIOUS, and warnKrita.
|
private |
Definition at line 79 of file kis_chunk_allocator.cpp.
References GAP_SIZE, HAS_NEXT, HAS_PREVIOUS, m_storeSize, PEEK_NEXT, and PEEK_PREVIOUS.
|
private |
Definition at line 145 of file kis_chunk_allocator.h.
|
private |
Definition at line 144 of file kis_chunk_allocator.h.
|
private |
Definition at line 140 of file kis_chunk_allocator.h.
|
private |
Definition at line 146 of file kis_chunk_allocator.h.
|
private |
Definition at line 141 of file kis_chunk_allocator.h.