Adds the given page data to this document, counting up memory.
| 424 | |
| 425 | // Adds the given page data to this document, counting up memory. |
| 426 | void DocumentData::AddPageToDocument(ImageData* page) { |
| 427 | SVAutoLock lock(&pages_mutex_); |
| 428 | pages_.push_back(page); |
| 429 | set_memory_used(memory_used() + page->MemoryUsed()); |
| 430 | } |
| 431 | |
| 432 | // If the given index is not currently loaded, loads it using a separate |
| 433 | // thread. |
nothing calls this directly
no test coverage detected