Lines Matching refs:pageIdx
214 int pageIdx = GetPageIndexFromID(plot->id()); in updatePlot() local
215 this->makeMRU(plot, pageIdx); in updatePlot()
224 GrTextureProxy* proxy = fProxies[pageIdx].get(); in updatePlot()
237 bool GrDrawOpAtlas::uploadToPage(unsigned int pageIdx, AtlasID* id, GrDeferredUploadTarget* target, in uploadToPage() argument
239 SkASSERT(fProxies[pageIdx] && fProxies[pageIdx]->isInstantiated()); in uploadToPage()
243 plotIter.init(fPages[pageIdx].fPlotList, PlotList::Iter::kHead_IterStart); in uploadToPage()
246 SkASSERT(GrBytesPerPixel(fProxies[pageIdx]->config()) == plot->bpp()); in uploadToPage()
275 for (unsigned int pageIdx = 0; pageIdx < fNumActivePages; ++pageIdx) { in addToAtlas() local
276 if (this->uploadToPage(pageIdx, id, target, width, height, image, loc)) { in addToAtlas()
287 for (unsigned int pageIdx = 0; pageIdx < fNumActivePages; ++pageIdx) { in addToAtlas() local
288 Plot* plot = fPages[pageIdx].fPlotList.tail(); in addToAtlas()
292 SkASSERT(GrBytesPerPixel(fProxies[pageIdx]->config()) == plot->bpp()); in addToAtlas()
323 for (int pageIdx = ((int)fNumActivePages)-1; pageIdx >= 0; --pageIdx) { in addToAtlas() local
324 Plot* currentPlot = fPages[pageIdx].fPlotList.tail(); in addToAtlas()
341 int pageIdx = GetPageIndexFromID(plot->id()); in addToAtlas() local
342 fPages[pageIdx].fPlotList.remove(plot); in addToAtlas()
343 sk_sp<Plot>& newPlot = fPages[pageIdx].fPlotArray[plot->index()]; in addToAtlas()
346 fPages[pageIdx].fPlotList.addToHead(newPlot.get()); in addToAtlas()
347 SkASSERT(GrBytesPerPixel(fProxies[pageIdx]->config()) == newPlot->bpp()); in addToAtlas()
356 GrTextureProxy* proxy = fProxies[pageIdx].get(); in addToAtlas()