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.h188 uint32_t pageIdx = GetPageIndexFromID(plotLocator); in setLastUseToken() local
189 SkASSERT(pageIdx < fNumActivePages); in setLastUseToken()
190 Plot* plot = fPages[pageIdx].fPlotArray[plotIdx].get(); in setLastUseToken()
191 this->makeMRU(plot, pageIdx); in setLastUseToken()
214 int pageIdx = GrDrawOpAtlas::GetPageIndexFromID(plotLocator); in add() local
215 if (this->find(pageIdx, index)) { in add()
218 this->set(pageIdx, index); in add()
228 PlotData(int pageIdx, int plotIdx) : fPageIndex(pageIdx), fPlotIndex(plotIdx) {} in PlotData()
234 bool find(int pageIdx, int index) const { in find() argument
236 return (fPlotAlreadyUpdated[pageIdx] >> index) & 1; in find()
[all …]
DGrDrawOpAtlas.cpp247 int pageIdx = GetPageIndexFromID(plot->plotLocator()); in updatePlot() local
248 this->makeMRU(plot, pageIdx); in updatePlot()
257 GrTextureProxy* proxy = fViews[pageIdx].asTextureProxy(); in updatePlot()
270 bool GrDrawOpAtlas::uploadToPage(const GrCaps& caps, unsigned int pageIdx, PlotLocator* plotLocator, in uploadToPage() argument
273 SkASSERT(fViews[pageIdx].proxy() && fViews[pageIdx].proxy()->isInstantiated()); in uploadToPage()
277 plotIter.init(fPages[pageIdx].fPlotList, PlotList::Iter::kHead_IterStart); in uploadToPage()
280 SkASSERT(caps.bytesPerPixel(fViews[pageIdx].proxy()->backendFormat()) == plot->bpp()); in uploadToPage()
312 for (unsigned int pageIdx = 0; pageIdx < fNumActivePages; ++pageIdx) { in addToAtlas() local
313 if (this->uploadToPage(caps, pageIdx, plotLocator, target, width, height, image, loc)) { in addToAtlas()
324 for (unsigned int pageIdx = 0; pageIdx < fNumActivePages; ++pageIdx) { in addToAtlas() local
[all …]
/external/skia/src/gpu/text/
DGrAtlasManager.cpp120 for (uint32_t pageIdx = 0; pageIdx < fAtlases[i]->numActivePages(); ++pageIdx) { in dump() local
121 SkASSERT(views[pageIdx].proxy()); in dump()
124 filename.printf("/sdcard/fontcache_%d%d%d.png", gDumpCount, i, pageIdx); in dump()
126 filename.printf("fontcache_%d%d%d.png", gDumpCount, i, pageIdx); in dump()
129 save_pixels(context, views[pageIdx], ct, filename.c_str()); in dump()
/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()