Lines Matching refs:plot
31 // If a layer has a plot (i.e., is atlased) then it must point to
188 this->incPlotLock(layer->plot()->id());
207 GrPlot* plot = fAtlas->addToAtlas(&pictInfo->fPlotUsage,
212 if (plot) {
214 pictInfo->incPlotUsage(plot->id());
220 layer->setPlot(plot);
222 this->incPlotLock(layer->plot()->id());
228 // plausibly atlas-able). See if a plot can be purged and try again.
276 const int plotID = layer->plot()->id();
291 GrAtlas::RemovePlot(&pictInfo->fPlotUsage, layer->plot());
328 if (layer->plot()) {
332 SkASSERT(pictInfo->fPlotUsage.contains(layer->plot()));
334 SkASSERT(pictInfo->plotUsage(layer->plot()->id()) > 0);
338 plotLocks[layer->plot()->id()]++;
395 GrPlot* plot;
396 for (plot = fAtlas->iterInit(&iter, GrAtlas::kLRUFirst_IterOrder);
397 plot;
398 plot = iter.prev()) {
399 if (fPlotLocks[plot->id()] > 0) {
403 this->purgePlot(plot);
410 void GrLayerCache::purgePlot(GrPlot* plot) {
411 SkASSERT(0 == fPlotLocks[plot->id()]);
413 // We need to find all the layers in 'plot' and remove them.
418 if (plot == (*iter).plot()) {
436 SkASSERT(0 == pictInfo->plotUsage(plot->id()));
438 GrAtlas::RemovePlot(&pictInfo->fPlotUsage, plot);
447 plot->resetRects();
457 GrPlot* plot;
458 for (plot = fAtlas->iterInit(&iter, GrAtlas::kLRUFirst_IterOrder);
459 plot;
460 plot = iter.prev()) {
461 SkASSERT(0 == fPlotLocks[plot->id()]);
463 this->purgePlot(plot);