Blender
V3.3
|
Partial update changes stored inside the image runtime. More...
Public Member Functions | |
void | update_resolution (const ImageTile *image_tile, const ImBuf *image_buffer) |
void | mark_full_update () |
void | mark_region (const ImageTile *image_tile, const rcti *updated_region) |
void | ensure_empty_changeset () |
void | commit_current_changeset () |
Move the current changeset to the history and resets the current changeset. More... | |
void | limit_history () |
Limit the number of items in the changeset. More... | |
bool | can_construct (ChangesetID changeset_id) |
std::optional< TileChangeset > | changed_tile_chunks_since (const ImageTile *image_tile, const ChangesetID from_changeset) |
collect all historic changes since a given changeset. More... | |
Public Attributes | |
ChangesetID | first_changeset_id |
changeset id of the first changeset kept in history. More... | |
ChangesetID | last_changeset_id |
changeset id of the top changeset kept in history. More... | |
Vector< Changeset > | history |
history of changesets. More... | |
Changeset | current_changeset |
The current changeset. New changes will be added to this changeset. More... | |
Partial update changes stored inside the image runtime.
The PartialUpdateRegisterImpl will keep track of changes over time. Changes are groups inside TileChangesets.
Definition at line 348 of file image_partial_update.cc.
|
inline |
/brief Check if data is available to construct the update tiles for the given changeset_id.
The update tiles can be created when changeset id is between
Definition at line 421 of file image_partial_update.cc.
References first_changeset_id, and last_changeset_id.
Referenced by blender::bke::image::partial_update::BKE_image_partial_update_collect_changes().
|
inline |
collect all historic changes since a given changeset.
Definition at line 437 of file image_partial_update.cc.
References blender::bke::image::partial_update::TileChangeset::chunk_x_len, blender::bke::image::partial_update::TileChangeset::chunk_y_len, first_changeset_id, history, and ImageTile::tile_number.
Referenced by blender::bke::image::partial_update::BKE_image_partial_update_collect_changes().
|
inline |
Move the current changeset to the history and resets the current changeset.
Definition at line 397 of file image_partial_update.cc.
References blender::bke::image::partial_update::Changeset::clear(), current_changeset, history, and last_changeset_id.
Referenced by ensure_empty_changeset().
|
inline |
Definition at line 385 of file image_partial_update.cc.
References commit_current_changeset(), current_changeset, blender::bke::image::partial_update::Changeset::has_dirty_chunks, and limit_history().
Referenced by blender::bke::image::partial_update::BKE_image_partial_update_collect_changes().
|
inline |
Limit the number of items in the changeset.
Definition at line 405 of file image_partial_update.cc.
References first_changeset_id, history, blender::bke::image::partial_update::MAX_HISTORY_LEN, and max_ii().
Referenced by ensure_empty_changeset().
|
inline |
Definition at line 370 of file image_partial_update.cc.
References blender::bke::image::partial_update::Changeset::clear(), current_changeset, first_changeset_id, history, and last_changeset_id.
Referenced by BKE_image_partial_update_mark_full_update(), and update_resolution().
|
inline |
Definition at line 378 of file image_partial_update.cc.
References current_changeset, blender::bke::image::partial_update::TileChangeset::has_dirty_chunks(), blender::bke::image::partial_update::Changeset::has_dirty_chunks, and blender::bke::image::partial_update::TileChangeset::mark_region().
Referenced by BKE_image_partial_update_mark_region().
|
inline |
Definition at line 359 of file image_partial_update.cc.
References current_changeset, blender::bke::image::partial_update::TileChangeset::has_dirty_chunks(), history, mark_full_update(), and blender::bke::image::partial_update::TileChangeset::update_resolution().
Referenced by BKE_image_partial_update_mark_region().
Changeset blender::bke::image::partial_update::PartialUpdateRegisterImpl::current_changeset |
The current changeset. New changes will be added to this changeset.
Definition at line 357 of file image_partial_update.cc.
Referenced by commit_current_changeset(), ensure_empty_changeset(), mark_full_update(), mark_region(), and update_resolution().
ChangesetID blender::bke::image::partial_update::PartialUpdateRegisterImpl::first_changeset_id |
changeset id of the first changeset kept in history.
Definition at line 350 of file image_partial_update.cc.
Referenced by can_construct(), changed_tile_chunks_since(), limit_history(), and mark_full_update().
history of changesets.
Definition at line 355 of file image_partial_update.cc.
Referenced by changed_tile_chunks_since(), commit_current_changeset(), limit_history(), mark_full_update(), and update_resolution().
ChangesetID blender::bke::image::partial_update::PartialUpdateRegisterImpl::last_changeset_id |
changeset id of the top changeset kept in history.
Definition at line 352 of file image_partial_update.cc.
Referenced by blender::bke::image::partial_update::BKE_image_partial_update_collect_changes(), can_construct(), commit_current_changeset(), and mark_full_update().