Lines Matching refs:pageIdx
148 uint32_t pageIdx = GetPageIndexFromID(id); in setLastUseToken() local
149 SkASSERT(pageIdx < fNumActivePages); in setLastUseToken()
150 Plot* plot = fPages[pageIdx].fPlotArray[plotIdx].get(); in setLastUseToken()
151 this->makeMRU(plot, pageIdx); in setLastUseToken()
180 int pageIdx = GrDrawOpAtlas::GetPageIndexFromID(id); in add() local
181 if (this->find(pageIdx, index)) { in add()
184 this->set(pageIdx, index); in add()
194 PlotData(int pageIdx, int plotIdx) : fPageIndex(pageIdx), fPlotIndex(plotIdx) {} in PlotData()
200 bool find(int pageIdx, int index) const { in find() argument
202 return (fPlotAlreadyUpdated[pageIdx] >> index) & 1; in find()
205 void set(int pageIdx, int index) { in set() argument
206 SkASSERT(!this->find(pageIdx, index)); in set()
207 fPlotAlreadyUpdated[pageIdx] |= (1 << index); in set()
208 fPlotsToUpdate.push_back(PlotData(pageIdx, index)); in set()
312 static GrDrawOpAtlas::AtlasID CreateId(uint32_t pageIdx, uint32_t plotIdx, in CreateId() argument
314 SkASSERT(pageIdx < (1 << 8)); in CreateId()
315 SkASSERT(pageIdx < kMaxMultitexturePages); in CreateId()
318 return generation << 16 | plotIdx << 8 | pageIdx; in CreateId()
362 inline void makeMRU(Plot* plot, int pageIdx) { in makeMRU() argument
363 if (fPages[pageIdx].fPlotList.head() == plot) { in makeMRU()
367 fPages[pageIdx].fPlotList.remove(plot); in makeMRU()
368 fPages[pageIdx].fPlotList.addToHead(plot); in makeMRU()
374 bool uploadToPage(unsigned int pageIdx, AtlasID* id, GrDeferredUploadTarget* target,