Lines Matching refs:plot
35 // If a layer has a plot (i.e., is atlased) then it must point to
193 this->incPlotLock(layer->plot()->id());
212 GrLayerAtlas::Plot* plot = fAtlas->addToAtlas(&pictInfo->fPlotUsage,
217 if (plot) {
219 pictInfo->incPlotUsage(plot->id());
225 layer->setPlot(plot);
227 this->incPlotLock(layer->plot()->id());
233 // plausibly atlas-able). See if a plot can be purged and try again.
282 const int plotID = layer->plot()->id();
297 pictInfo->fPlotUsage.removePlot(layer->plot());
334 if (layer->plot()) {
338 SkASSERT(pictInfo->fPlotUsage.contains(layer->plot()));
340 SkASSERT(pictInfo->plotUsage(layer->plot()->id()) > 0);
344 plotLocks[layer->plot()->id()]++;
402 GrLayerAtlas::Plot* plot;
403 for (plot = fAtlas->iterInit(&iter, GrLayerAtlas::kLRUFirst_IterOrder);
404 plot;
405 plot = iter.prev()) {
406 if (fPlotLocks[plot->id()] > 0) {
411 this->purgePlot(plot);
420 void GrLayerCache::purgePlot(GrLayerAtlas::Plot* plot) {
421 SkASSERT(0 == fPlotLocks[plot->id()]);
423 // We need to find all the layers in 'plot' and remove them.
428 if (plot == (*iter).plot()) {
446 SkASSERT(0 == pictInfo->plotUsage(plot->id()));
448 pictInfo->fPlotUsage.removePlot(plot);
457 plot->reset();