Lines Matching refs:plot
259 AtlasLocator* atlasLocator, Plot* plot) { in updatePlot() argument
260 int pageIdx = plot->pageIndex(); in updatePlot()
261 this->makeMRU(plot, pageIdx); in updatePlot()
266 if (plot->lastUploadToken() < target->tokenTracker()->nextTokenToFlush()) { in updatePlot()
268 sk_sp<Plot> plotsp(SkRef(plot)); in updatePlot()
277 plot->setLastUploadToken(lastUploadToken); in updatePlot()
279 atlasLocator->updatePlotLocator(plot->plotLocator()); in updatePlot()
292 for (Plot* plot = plotIter.get(); plot; plot = plotIter.next()) { in uploadToPage() local
294 plot->bpp()); in uploadToPage()
296 if (plot->addSubImage(width, height, image, atlasLocator)) { in uploadToPage()
297 return this->updatePlot(target, atlasLocator, plot); in uploadToPage()
337 Plot* plot = fPages[pageIdx].fPlotList.tail(); in addToAtlas() local
338 SkASSERT(plot); in addToAtlas()
339 if (plot->lastUseToken() < target->tokenTracker()->nextTokenToFlush()) { in addToAtlas()
340 this->processEvictionAndResetRects(plot); in addToAtlas()
342 plot->bpp()); in addToAtlas()
343 SkDEBUGCODE(bool verify = )plot->addSubImage(width, height, image, atlasLocator); in addToAtlas()
345 if (!this->updatePlot(target, atlasLocator, plot)) { in addToAtlas()
372 Plot* plot = nullptr; in addToAtlas() local
376 plot = currentPlot; in addToAtlas()
386 if (!plot) { in addToAtlas()
390 this->processEviction(plot->plotLocator()); in addToAtlas()
391 int pageIdx = plot->pageIndex(); in addToAtlas()
392 fPages[pageIdx].fPlotList.remove(plot); in addToAtlas()
393 sk_sp<Plot>& newPlot = fPages[pageIdx].fPlotArray[plot->plotIndex()]; in addToAtlas()
394 newPlot.reset(plot->clone()); in addToAtlas()
431 while (Plot* plot = plotIter.get()) { in compactRadicals() local
432 if (plot->lastUseToken().inInterval(fPrevFlushToken, startTokenForNextFlush)) { in compactRadicals()
435 } else if (plot->lastUploadToken() != GrDeferredUploadToken::AlreadyFlushedToken()) { in compactRadicals()
436 this->processEvictionAndResetRects(plot); in compactRadicals()
471 while (Plot* plot = plotIter.get()) { in compact() local
473 if (plot->lastUseToken().inInterval(fPrevFlushToken, startTokenForNextFlush)) { in compact()
474 plot->resetFlushesSinceLastUsed(); in compact()
505 while (Plot* plot = plotIter.get()) { in compact() local
510 if (!plot->lastUseToken().inInterval(fPrevFlushToken, startTokenForNextFlush)) { in compact()
511 plot->incFlushesSinceLastUsed(); in compact()
516 SkDebugf("%d ", plot->flushesSinceLastUsed()); in compact()
521 if (plot->flushesSinceLastUsed() > threshold) { in compact()
522 availablePlots.push_back() = plot; in compact()
544 while (Plot* plot = plotIter.get()) { in compact() local
546 if (!plot->lastUseToken().inInterval(fPrevFlushToken, startTokenForNextFlush)) { in compact()
547 plot->incFlushesSinceLastUsed(); in compact()
552 SkDebugf("%d ", plot->flushesSinceLastUsed()); in compact()
556 if (plot->flushesSinceLastUsed() <= threshold) { in compact()
558 } else if (plot->lastUseToken() != GrDeferredUploadToken::AlreadyFlushedToken()) { in compact()
560 this->processEvictionAndResetRects(plot); in compact()
576 while (Plot* plot = plotIter.get()) { in compact() local
578 if (plot->flushesSinceLastUsed() <= threshold) { in compact()
583 this->processEvictionAndResetRects(plot); in compact()