Lines Matching defs:plot
65 // once the plot is nearly full we will revert to uploading each subimage individually
133 // If the Plot is nearly full, anything else we add will probably be small and one
198 void GrAtlasMgr::moveToHead(GrPlot* plot) {
199 if (fPlotList.head() == plot) {
203 fPlotList.remove(plot);
204 fPlotList.addToHead(plot);
210 // iterate through entire plot list for this atlas, see if we can find a hole
213 GrPlot* plot = atlas->fPlots[i];
214 if (plot->addSubImage(width, height, image, loc)) {
215 this->moveToHead(plot);
216 return plot;
220 // before we get a new plot, make sure we have a backing texture
238 GrPlot* plot;
239 while (NULL != (plot = plotIter.get())) {
241 plot->fTexture = fTexture;
242 if (plot->addSubImage(width, height, image, loc)) {
243 this->moveToHead(plot);
244 // new plot for atlas, put at end of array
245 *(atlas->fPlots.append()) = plot;
246 return plot;
251 // If the above fails, then the current plot list has no room
255 bool GrAtlasMgr::removePlot(GrAtlas* atlas, const GrPlot* plot) {
256 // iterate through plot list for this atlas
259 if (plot == atlas->fPlots[i]) {
268 // get a plot that's not being used by the current draw
272 GrPlot* plot;
273 while (NULL != (plot = plotIter.get())) {
274 if (plot->drawToken().isIssued()) {
275 return plot;
287 GrPlot* plot;
288 while (NULL != (plot = plotIter.get())) {
289 plot->uploadToTexture();