Home
last modified time | relevance | path

Searched refs:atlas (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DVectorDrawableAtlasTests.cpp29 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()
92 VectorDrawableAtlas atlas(100*100); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
94 atlas.setStorageMode(VectorDrawableAtlas::StorageMode::disallowSharedSurface); in RENDERTHREAD_SKIA_PIPELINE_TEST()
95 atlas.prepareForDraw(renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
103 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
/frameworks/base/libs/hwui/
DVectorDrawable.cpp495 void Tree::updateCache(sp<skiapipeline::VectorDrawableAtlas>& atlas, GrContext* context) { in updateCache() argument
503 auto atlasEntry = atlas->requestNewEntry(scaledWidth, scaledHeight, context); in updateCache()
507 mCache.setAtlas(atlas, atlasEntry.key); in updateCache()
544 sp<skiapipeline::VectorDrawableAtlas> atlas = mAtlas.promote(); in getSurface() local
545 if (atlas.get() && mAtlasKey != INVALID_ATLAS_KEY) { in getSurface()
546 auto atlasEntry = atlas->getEntry(mAtlasKey); in getSurface()
DVectorDrawable.h701 void updateCache(sp<skiapipeline::VectorDrawableAtlas>& atlas, GrContext* context);
717 void setAtlas(sp<skiapipeline::VectorDrawableAtlas> atlas,
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp187 sp<VectorDrawableAtlas> atlas = mRenderThread.cacheManager().acquireVectorDrawableAtlas(); in renderVectorDrawableCache() local
189 atlas->prepareForDraw(grContext); in renderVectorDrawableCache()
191 vd->updateCache(atlas, grContext); in renderVectorDrawableCache()