Skip to content

Commit

Permalink
dev: Mark the image as processed.
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmin42 committed Jan 20, 2024
1 parent 6b7e66e commit 72debd2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PB/include/pb/image/VirtualImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class VirtualImage {

bool processed() const { return mProcessed; }

void finishProcessing() { mProcessed = false; }
void finishProcessing() { mProcessed = true; }

protected:
ImageResources mFrontend = {
Expand Down
8 changes: 7 additions & 1 deletion PB/src/ImageMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ void ImageMonitor::clear()
log();
}

void ImageMonitor::completeRow(int index) { mPendingRows.erase(index); }
void ImageMonitor::completeRow(int index)
{
for (auto imagePtr : mUnstagedImagesMatrix.at(index)) {
imagePtr->finishProcessing();
}
mPendingRows.erase(index);
}

bool ImageMonitor::isPending(Path path) const
{
Expand Down

0 comments on commit 72debd2

Please sign in to comment.