Fix crash in setLastUseTokenBulk
Bug: skia:3550 Change-Id: I00f83f40b30549cbfcb65e6a39afba6355d62299 Reviewed-on: https://skia-review.googlesource.com/52420 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
parent
0b5e7d16c2
commit
6ca9c6f412
@ -195,9 +195,11 @@ public:
|
||||
int count = updater.fPlotsToUpdate.count();
|
||||
for (int i = 0; i < count; i++) {
|
||||
const BulkUseTokenUpdater::PlotData& pd = updater.fPlotsToUpdate[i];
|
||||
Plot* plot = fPages[pd.fPageIndex].fPlotArray[pd.fPlotIndex].get();
|
||||
this->makeMRU(plot, pd.fPageIndex);
|
||||
plot->setLastUseToken(token);
|
||||
if (pd.fPageIndex < fNumPages) {
|
||||
Plot* plot = fPages[pd.fPageIndex].fPlotArray[pd.fPlotIndex].get();
|
||||
this->makeMRU(plot, pd.fPageIndex);
|
||||
plot->setLastUseToken(token);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user