Home
last modified time | relevance | path

Searched refs:pageIdx (Results 1 – 6 of 6) sorted by relevance

/external/skia/src/gpu/ganesh/
DGrDrawOpAtlas.cpp154 int pageIdx = plot->pageIndex(); in updatePlot() local
155 this->makeMRU(plot, pageIdx); in updatePlot()
164 GrTextureProxy* proxy = fViews[pageIdx].asTextureProxy(); in updatePlot()
178 bool GrDrawOpAtlas::uploadToPage(unsigned int pageIdx, GrDeferredUploadTarget* target, int width, in uploadToPage() argument
180 SkASSERT(fViews[pageIdx].proxy() && fViews[pageIdx].proxy()->isInstantiated()); in uploadToPage()
184 plotIter.init(fPages[pageIdx].fPlotList, PlotList::Iter::kHead_IterStart); in uploadToPage()
187 SkASSERT(GrBackendFormatBytesPerPixel(fViews[pageIdx].proxy()->backendFormat()) == in uploadToPage()
218 for (unsigned int pageIdx = 0; pageIdx < fNumActivePages; ++pageIdx) { in addToAtlas() local
219 if (this->uploadToPage(pageIdx, target, width, height, image, atlasLocator)) { in addToAtlas()
230 for (unsigned int pageIdx = 0; pageIdx < fNumActivePages; ++pageIdx) { in addToAtlas() local
[all …]
DGrDrawOpAtlas.h133 uint32_t pageIdx = atlasLocator.pageIndex(); in setLastUseToken() local
134 SkASSERT(pageIdx < fNumActivePages); in setLastUseToken()
135 skgpu::Plot* plot = fPages[pageIdx].fPlotArray[plotIdx].get(); in setLastUseToken()
136 this->makeMRU(plot, pageIdx); in setLastUseToken()
176 inline void makeMRU(skgpu::Plot* plot, int pageIdx) { in makeMRU() argument
177 if (fPages[pageIdx].fPlotList.head() == plot) { in makeMRU()
181 fPages[pageIdx].fPlotList.remove(plot); in makeMRU()
182 fPages[pageIdx].fPlotList.addToHead(plot); in makeMRU()
188 bool uploadToPage(unsigned int pageIdx, GrDeferredUploadTarget*, int width, int height,
/external/skia/src/gpu/graphite/
DDrawAtlas.h131 uint32_t pageIdx = atlasLocator.pageIndex(); in setLastUseToken() local
132 SkASSERT(pageIdx < fNumActivePages); in setLastUseToken()
133 Plot* plot = fPages[pageIdx].fPlotArray[plotIdx].get(); in setLastUseToken()
134 this->makeMRU(plot, pageIdx); in setLastUseToken()
173 inline void makeMRU(Plot* plot, int pageIdx) { in makeMRU() argument
174 if (fPages[pageIdx].fPlotList.head() == plot) { in makeMRU()
178 fPages[pageIdx].fPlotList.remove(plot); in makeMRU()
179 fPages[pageIdx].fPlotList.addToHead(plot); in makeMRU()
185 bool addToPage(unsigned int pageIdx, int width, int height, const void* image, AtlasLocator*);
DDrawAtlas.cpp145 int pageIdx = plot->pageIndex(); in updatePlot() local
146 this->makeMRU(plot, pageIdx); in updatePlot()
155 bool DrawAtlas::addToPage(unsigned int pageIdx, int width, int height, const void* image, in addToPage() argument
157 SkASSERT(fProxies[pageIdx]); in addToPage()
161 plotIter.init(fPages[pageIdx].fPlotList, PlotList::Iter::kHead_IterStart); in addToPage()
174 for (uint32_t pageIdx = 0; pageIdx < fNumActivePages; ++pageIdx) { in recordUploads() local
176 plotIter.init(fPages[pageIdx].fPlotList, PlotList::Iter::kHead_IterStart); in recordUploads()
179 TextureProxy* proxy = fProxies[pageIdx].get(); in recordUploads()
229 for (unsigned int pageIdx = 0; pageIdx < fNumActivePages; ++pageIdx) { in addToAtlas() local
230 if (this->addToPage(pageIdx, width, height, image, atlasLocator)) { in addToAtlas()
[all …]
/external/skia/src/gpu/
DAtlasTypes.h244 PlotLocator(uint32_t pageIdx, uint32_t plotIdx, uint64_t generation) in PlotLocator() argument
247 , fPageIndex(pageIdx) { in PlotLocator()
248 SkASSERT(pageIdx < kMaxMultitexturePages); in PlotLocator()
385 int pageIdx = atlasLocator.pageIndex(); in add() local
386 if (this->find(pageIdx, plotIdx)) { in add()
389 this->set(pageIdx, plotIdx); in add()
399 PlotData(int pageIdx, int plotIdx) : fPageIndex(pageIdx), fPlotIndex(plotIdx) {} in PlotData()
409 bool find(int pageIdx, int index) const { in find() argument
411 return (fPlotAlreadyUpdated[pageIdx] >> index) & 1; in find()
414 void set(int pageIdx, int index) { in set() argument
[all …]
/external/skia/src/gpu/ganesh/text/
DGrAtlasManager.cpp308 for (uint32_t pageIdx = 0; pageIdx < fAtlases[i]->numActivePages(); ++pageIdx) { in dump() local
309 SkASSERT(views[pageIdx].proxy()); in dump()
312 filename.printf("/sdcard/fontcache_%d%d%d.png", gDumpCount, i, pageIdx); in dump()
314 filename.printf("fontcache_%d%d%d.png", gDumpCount, i, pageIdx); in dump()
317 save_pixels(context, views[pageIdx], SkColorTypeToGrColorType(ct), in dump()