Home
last modified time | relevance | path

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

/external/skqp/src/gpu/
DGrDrawOpAtlas.h148 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()
[all …]
DGrDrawOpAtlas.cpp214 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
[all …]
/external/skia/src/gpu/
DGrDrawOpAtlas.h75 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()
[all …]
DGrDrawOpAtlas.cpp241 int pageIdx = plot->pageIndex(); in updatePlot() local
242 this->makeMRU(plot, pageIdx); in updatePlot()
251 GrTextureProxy* proxy = fViews[pageIdx].asTextureProxy(); in updatePlot()
265 bool GrDrawOpAtlas::uploadToPage(unsigned int pageIdx, GrDeferredUploadTarget* target, int width, in uploadToPage() argument
267 SkASSERT(fViews[pageIdx].proxy() && fViews[pageIdx].proxy()->isInstantiated()); in uploadToPage()
271 plotIter.init(fPages[pageIdx].fPlotList, PlotList::Iter::kHead_IterStart); in uploadToPage()
274 SkASSERT(GrBackendFormatBytesPerPixel(fViews[pageIdx].proxy()->backendFormat()) == in uploadToPage()
305 for (unsigned int pageIdx = 0; pageIdx < fNumActivePages; ++pageIdx) { in addToAtlas() local
306 if (this->uploadToPage(pageIdx, target, width, height, image, atlasLocator)) { in addToAtlas()
317 for (unsigned int pageIdx = 0; pageIdx < fNumActivePages; ++pageIdx) { in addToAtlas() local
[all …]
/external/skqp/src/gpu/text/
DGrAtlasManager.cpp148 for (uint32_t pageIdx = 0; pageIdx < fAtlases[i]->numActivePages(); ++pageIdx) { in dump() local
149 SkASSERT(proxies[pageIdx]); in dump()
152 filename.printf("/sdcard/fontcache_%d%d%d.png", gDumpCount, i, pageIdx); in dump()
154 filename.printf("fontcache_%d%d%d.png", gDumpCount, i, pageIdx); in dump()
157 save_pixels(context, proxies[pageIdx].get(), filename.c_str()); in dump()
/external/skia/src/gpu/text/
DGrAtlasManager.cpp274 for (uint32_t pageIdx = 0; pageIdx < fAtlases[i]->numActivePages(); ++pageIdx) { in dump() local
275 SkASSERT(views[pageIdx].proxy()); in dump()
278 filename.printf("/sdcard/fontcache_%d%d%d.png", gDumpCount, i, pageIdx); in dump()
280 filename.printf("fontcache_%d%d%d.png", gDumpCount, i, pageIdx); in dump()
283 save_pixels(context, views[pageIdx], ct, filename.c_str()); in dump()