Lines Matching refs:pageIdx
75 PlotLocator(uint32_t pageIdx, uint32_t plotIdx, uint64_t generation) in PlotLocator() argument
78 , fPageIndex(pageIdx) { in PlotLocator()
79 SkASSERT(pageIdx < kMaxMultitexturePages); in PlotLocator()
278 uint32_t pageIdx = atlasLocator.pageIndex(); in setLastUseToken() local
279 SkASSERT(pageIdx < fNumActivePages); in setLastUseToken()
280 Plot* plot = fPages[pageIdx].fPlotArray[plotIdx].get(); in setLastUseToken()
281 this->makeMRU(plot, pageIdx); in setLastUseToken()
304 int pageIdx = atlasLocator.pageIndex(); in add() local
305 if (this->find(pageIdx, plotIdx)) { in add()
308 this->set(pageIdx, plotIdx); in add()
318 PlotData(int pageIdx, int plotIdx) : fPageIndex(pageIdx), fPlotIndex(plotIdx) {} in PlotData()
324 bool find(int pageIdx, int index) const { in find() argument
326 return (fPlotAlreadyUpdated[pageIdx] >> index) & 1; in find()
329 void set(int pageIdx, int index) { in set() argument
330 SkASSERT(!this->find(pageIdx, index)); in set()
331 fPlotAlreadyUpdated[pageIdx] |= (1 << index); in set()
332 fPlotsToUpdate.push_back(PlotData(pageIdx, index)); in set()
468 inline void makeMRU(Plot* plot, int pageIdx) { in makeMRU() argument
469 if (fPages[pageIdx].fPlotList.head() == plot) { in makeMRU()
473 fPages[pageIdx].fPlotList.remove(plot); in makeMRU()
474 fPages[pageIdx].fPlotList.addToHead(plot); in makeMRU()
480 bool uploadToPage(unsigned int pageIdx, GrDeferredUploadTarget*, int width, int height,