Searched refs:atlas (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/libs/hwui/tests/unit/ |
D | VectorDrawableAtlasTests.cpp | 29 VectorDrawableAtlas atlas(100 * 100); in RENDERTHREAD_SKIA_PIPELINE_TEST() local 30 atlas.prepareForDraw(renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 40 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 69 auto VDRect = atlas.getEntry(VDRects[i].key); in RENDERTHREAD_SKIA_PIPELINE_TEST() 74 atlas.releaseEntry(VDRect.key); in RENDERTHREAD_SKIA_PIPELINE_TEST() 80 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 91 VectorDrawableAtlas atlas(100 * 100); in RENDERTHREAD_SKIA_PIPELINE_TEST() local 93 atlas.setStorageMode(VectorDrawableAtlas::StorageMode::disallowSharedSurface); in RENDERTHREAD_SKIA_PIPELINE_TEST() 94 atlas.prepareForDraw(renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 102 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST() [all …]
|
/frameworks/base/libs/hwui/ |
D | VectorDrawable.cpp | 489 void Tree::updateCache(sp<skiapipeline::VectorDrawableAtlas>& atlas, GrContext* context) { in updateCache() argument 497 auto atlasEntry = atlas->requestNewEntry(scaledWidth, scaledHeight, context); in updateCache() 501 mCache.setAtlas(atlas, atlasEntry.key); in updateCache() 529 sp<skiapipeline::VectorDrawableAtlas> atlas = mAtlas.promote(); in getSurface() local 530 if (atlas.get() && mAtlasKey != INVALID_ATLAS_KEY) { in getSurface() 531 auto atlasEntry = atlas->getEntry(mAtlasKey); in getSurface()
|
D | RecordingCanvas.cpp | 445 DrawAtlas(const SkImage* atlas, int count, SkBlendMode xfermode, const SkRect* cull, in DrawAtlas() 447 : atlas(sk_ref_sp(atlas)), count(count), xfermode(xfermode), has_colors(has_colors) { in DrawAtlas() 455 sk_sp<const SkImage> atlas; member 466 c->drawAtlas(atlas.get(), xforms, texs, colors, count, xfermode, maybe_unset(cull), &paint); in draw() 661 void DisplayListData::drawAtlas(const SkImage* atlas, const SkRSXform xforms[], const SkRect texs[], in drawAtlas() argument 669 this->push<DrawAtlas>(bytes, atlas, count, xfermode, cull, paint, colors != nullptr); in drawAtlas() 971 void RecordingCanvas::onDrawAtlas(const SkImage* atlas, const SkRSXform xforms[], in onDrawAtlas() argument 974 fDL->drawAtlas(atlas, xforms, texs, colors, count, bmode, cull, paint); in onDrawAtlas()
|
D | VectorDrawable.h | 658 void updateCache(sp<skiapipeline::VectorDrawableAtlas>& atlas, GrContext* context); 676 void setAtlas(sp<skiapipeline::VectorDrawableAtlas> atlas,
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaPipeline.cpp | 214 sp<VectorDrawableAtlas> atlas = mRenderThread.cacheManager().acquireVectorDrawableAtlas(); in renderVectorDrawableCache() local 216 atlas->prepareForDraw(grContext); in renderVectorDrawableCache() 219 vd->updateCache(atlas, grContext); in renderVectorDrawableCache()
|