Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9be0350 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Disable VD shared atlas surface"

parents fe931c05 dd098e8d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ namespace renderthread {
CacheManager::CacheManager(const DisplayInfo& display)
        : mMaxSurfaceArea(display.w * display.h) {
    mVectorDrawableAtlas = new skiapipeline::VectorDrawableAtlas(mMaxSurfaceArea/2,
            skiapipeline::VectorDrawableAtlas::StorageMode::allowSharedSurface);
            skiapipeline::VectorDrawableAtlas::StorageMode::disallowSharedSurface);
}

void CacheManager::reset(GrContext* context) {
@@ -62,7 +62,8 @@ void CacheManager::reset(GrContext* context) {
void CacheManager::destroy() {
    // cleanup any caches here as the GrContext is about to go away...
    mGrContext.reset(nullptr);
    mVectorDrawableAtlas = new skiapipeline::VectorDrawableAtlas(mMaxSurfaceArea/2);
    mVectorDrawableAtlas = new skiapipeline::VectorDrawableAtlas(mMaxSurfaceArea/2,
             skiapipeline::VectorDrawableAtlas::StorageMode::disallowSharedSurface);
}

void CacheManager::updateContextCacheSizes() {