Searched refs:VectorDrawableAtlas (Results 1 - 8 of 8) sorted by relevance
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | VectorDrawableAtlas.cpp | 17 #include "VectorDrawableAtlas.h" 29 VectorDrawableAtlas::VectorDrawableAtlas(size_t surfaceArea, StorageMode storageMode) function in class:android::uirenderer::skiapipeline::VectorDrawableAtlas 35 void VectorDrawableAtlas::prepareForDraw(GrContext* context) { 56 bool VectorDrawableAtlas::isFragmented() { 61 void VectorDrawableAtlas::repackIfNeeded(GrContext* context) { 71 bool VectorDrawableAtlas::compareCacheEntry(const CacheEntry& first, const CacheEntry& second) 76 void VectorDrawableAtlas::repack(GrContext* context) { 153 AtlasEntry VectorDrawableAtlas::requestNewEntry(int width, int height, GrContext* context) { 215 AtlasEntry VectorDrawableAtlas [all...] |
H A D | VectorDrawableAtlas.h | 42 * VectorDrawableAtlas provides offscreen buffers used to draw VD and AnimatedVD. 43 * VectorDrawableAtlas can allocate a standalone surface or provide a subrect from a shared surface. 44 * VectorDrawableAtlas is owned by the CacheManager and weak pointers are kept by each 45 * VectorDrawable that is using it. VectorDrawableAtlas and its surface can be deleted at any time, 48 * when drawing. This design makes VectorDrawableAtlas free to move the data internally. 51 * VectorDrawableAtlas until the next frame. 52 * VectorDrawableAtlas tries to fit VDs in the atlas SkSurface. If there is not enough space in 53 * the atlas, VectorDrawableAtlas creates a standalone surface for each VD. 54 * When a VectorDrawable is deleted, it invokes VectorDrawableAtlas::releaseEntry, which is keeping 60 class VectorDrawableAtlas class in namespace:android::uirenderer::skiapipeline [all...] |
H A D | SkiaPipeline.cpp | 187 sp<VectorDrawableAtlas> atlas = mRenderThread.cacheManager().acquireVectorDrawableAtlas();
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | CacheManager.h | 25 #include "pipeline/skia/VectorDrawableAtlas.h" 52 sp<skiapipeline::VectorDrawableAtlas> acquireVectorDrawableAtlas(); 79 sp<skiapipeline::VectorDrawableAtlas> mVectorDrawableAtlas;
|
H A D | CacheManager.cpp | 46 mVectorDrawableAtlas = new skiapipeline::VectorDrawableAtlas(mMaxSurfaceArea/2, 47 skiapipeline::VectorDrawableAtlas::StorageMode::allowSharedSurface); 65 mVectorDrawableAtlas = new skiapipeline::VectorDrawableAtlas(mMaxSurfaceArea/2); 108 mVectorDrawableAtlas = new skiapipeline::VectorDrawableAtlas(mMaxSurfaceArea/2); 125 sp<skiapipeline::VectorDrawableAtlas> CacheManager::acquireVectorDrawableAtlas() { 146 log.appendFormat(" VectorDrawableAtlas %6.2f kB / %6.2f kB (entries = %zu)\n",
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | VectorDrawableAtlasTests.cpp | 21 #include "pipeline/skia/VectorDrawableAtlas.h" 28 RENDERTHREAD_SKIA_PIPELINE_TEST(VectorDrawableAtlas, addGetRemove) { 29 VectorDrawableAtlas atlas(100*100); 91 RENDERTHREAD_SKIA_PIPELINE_TEST(VectorDrawableAtlas, disallowSharedSurface) { 92 VectorDrawableAtlas atlas(100*100); 94 atlas.setStorageMode(VectorDrawableAtlas::StorageMode::disallowSharedSurface); 115 RENDERTHREAD_SKIA_PIPELINE_TEST(VectorDrawableAtlas, repack) { 116 VectorDrawableAtlas atlas(100*100);
|
/frameworks/base/libs/hwui/ |
H A D | VectorDrawable.cpp | 495 void Tree::updateCache(sp<skiapipeline::VectorDrawableAtlas>& atlas, GrContext* context) { 534 void Tree::Cache::setAtlas(sp<skiapipeline::VectorDrawableAtlas> newAtlas, 544 sp<skiapipeline::VectorDrawableAtlas> atlas = mAtlas.promote(); 556 sp<skiapipeline::VectorDrawableAtlas> lockAtlas = mAtlas.promote(); 571 // Handle the case when VectorDrawableAtlas has been destroyed, because of memory pressure.
|
H A D | VectorDrawable.h | 701 void updateCache(sp<skiapipeline::VectorDrawableAtlas>& atlas, GrContext* context); 717 void setAtlas(sp<skiapipeline::VectorDrawableAtlas> atlas, 732 wp<skiapipeline::VectorDrawableAtlas> mAtlas;
|
Completed in 110 milliseconds