Changeset View
Changeset View
Standalone View
Standalone View
libs/image/tiles3/kis_memento_manager.cc
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | |||||
112 | * | 112 | * | ||
113 | * TODO: There is an 'uncomfortable' state for the tile possible | 113 | * TODO: There is an 'uncomfortable' state for the tile possible | ||
114 | * 1) Imagine we have a clear device | 114 | * 1) Imagine we have a clear device | ||
115 | * 2) Then we painted something in a tile | 115 | * 2) Then we painted something in a tile | ||
116 | * 3) It registered itself using registerTileChange() | 116 | * 3) It registered itself using registerTileChange() | ||
117 | * 4) Then we called clear() and getMemento() [==commit()] | 117 | * 4) Then we called clear() and getMemento() [==commit()] | ||
118 | * 5) The tile will be registered as deleted and successfully | 118 | * 5) The tile will be registered as deleted and successfully | ||
119 | * committed to a revision. That means the states of the memento | 119 | * committed to a revision. That means the states of the memento | ||
120 | * manager at stages 1 and 5 do not coinside. | 120 | * manager at stages 1 and 5 do not coincide. | ||
121 | * This will not lead to any memory leaks or bugs seen, it just | 121 | * This will not lead to any memory leaks or bugs seen, it just | ||
122 | * not good from a theoretical perspective. | 122 | * not good from a theoretical perspective. | ||
123 | */ | 123 | */ | ||
124 | 124 | | |||
125 | void KisMementoManager::registerTileChange(KisTile *tile) | 125 | void KisMementoManager::registerTileChange(KisTile *tile) | ||
126 | { | 126 | { | ||
127 | if (registrationBlocked()) return; | 127 | if (registrationBlocked()) return; | ||
128 | 128 | | |||
▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines |