• Home
  • Raw
  • Download

Lines Matching refs:plot

223 inline bool GrDrawOpAtlas::updatePlot(GrDeferredUploadTarget* target, AtlasID* id, Plot* plot) {  in updatePlot()  argument
224 int pageIdx = GetPageIndexFromID(plot->id()); in updatePlot()
225 this->makeMRU(plot, pageIdx); in updatePlot()
230 if (plot->lastUploadToken() < target->tokenTracker()->nextTokenToFlush()) { in updatePlot()
232 sk_sp<Plot> plotsp(SkRef(plot)); in updatePlot()
241 plot->setLastUploadToken(lastUploadToken); in updatePlot()
243 *id = plot->id(); in updatePlot()
255 for (Plot* plot = plotIter.get(); plot; plot = plotIter.next()) { in uploadToPage() local
256 SkASSERT(GrBytesPerPixel(fProxies[pageIdx]->config()) == plot->bpp()); in uploadToPage()
258 if (plot->addSubImage(width, height, image, loc)) { in uploadToPage()
259 return this->updatePlot(target, id, plot); in uploadToPage()
298 Plot* plot = fPages[pageIdx].fPlotList.tail(); in addToAtlas() local
299 SkASSERT(plot); in addToAtlas()
300 if (plot->lastUseToken() < target->tokenTracker()->nextTokenToFlush()) { in addToAtlas()
301 this->processEvictionAndResetRects(plot); in addToAtlas()
302 SkASSERT(GrBytesPerPixel(fProxies[pageIdx]->config()) == plot->bpp()); in addToAtlas()
303 SkDEBUGCODE(bool verify = )plot->addSubImage(width, height, image, loc); in addToAtlas()
305 if (!this->updatePlot(target, id, plot)) { in addToAtlas()
335 Plot* plot = nullptr; in addToAtlas() local
339 plot = currentPlot; in addToAtlas()
349 if (!plot) { in addToAtlas()
353 this->processEviction(plot->id()); in addToAtlas()
354 int pageIdx = GetPageIndexFromID(plot->id()); in addToAtlas()
355 fPages[pageIdx].fPlotList.remove(plot); in addToAtlas()
356 sk_sp<Plot>& newPlot = fPages[pageIdx].fPlotArray[plot->index()]; in addToAtlas()
357 newPlot.reset(plot->clone()); in addToAtlas()
394 while (Plot* plot = plotIter.get()) { in compactRadicals() local
395 if (plot->lastUseToken().inInterval(fPrevFlushToken, startTokenForNextFlush)) { in compactRadicals()
397 } else if (plot->lastUploadToken() != GrDeferredUploadToken::AlreadyFlushedToken()) { in compactRadicals()
398 this->processEvictionAndResetRects(plot); in compactRadicals()
425 while (Plot* plot = plotIter.get()) { in compact() local
427 if (plot->lastUseToken().inInterval(fPrevFlushToken, startTokenForNextFlush)) { in compact()
428 plot->resetFlushesSinceLastUsed(); in compact()
453 while (Plot* plot = plotIter.get()) { in compact() local
458 if (!plot->lastUseToken().inInterval(fPrevFlushToken, startTokenForNextFlush)) { in compact()
459 plot->incFlushesSinceLastUsed(); in compact()
464 SkDebugf("%d ", plot->flushesSinceLastUsed()); in compact()
469 if (plot->flushesSinceLastUsed() > threshold) { in compact()
470 availablePlots.push_back() = plot; in compact()
492 while (Plot* plot = plotIter.get()) { in compact() local
494 if (!plot->lastUseToken().inInterval(fPrevFlushToken, startTokenForNextFlush)) { in compact()
495 plot->incFlushesSinceLastUsed(); in compact()
500 SkDebugf("%d ", plot->flushesSinceLastUsed()); in compact()
504 if (plot->flushesSinceLastUsed() <= threshold) { in compact()
506 } else if (plot->lastUseToken() != GrDeferredUploadToken::AlreadyFlushedToken()) { in compact()
508 this->processEvictionAndResetRects(plot); in compact()
524 while (Plot* plot = plotIter.get()) { in compact() local
526 if (plot->flushesSinceLastUsed() <= threshold) { in compact()
531 this->processEvictionAndResetRects(plot); in compact()