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

Commit c8affe0e authored by John Reck's avatar John Reck
Browse files

Re-enable atlas

 Bug: 14590563

Change-Id: I04ed5bf1b2654dab4a65c1e43faaeba32459870f
parent 45d01929
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -31,7 +31,6 @@


#define PROPERTY_RENDER_DIRTY_REGIONS "debug.hwui.render_dirty_regions"
#define PROPERTY_RENDER_DIRTY_REGIONS "debug.hwui.render_dirty_regions"
#define GLES_VERSION 2
#define GLES_VERSION 2
#define USE_TEXTURE_ATLAS false


// Android-specific addition that is used to show when frames began in systrace
// Android-specific addition that is used to show when frames began in systrace
EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface);
EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface);
@@ -229,7 +228,7 @@ void GlobalContext::setTextureAtlas(const sp<GraphicBuffer>& buffer,
}
}


void GlobalContext::initAtlas() {
void GlobalContext::initAtlas() {
    if (USE_TEXTURE_ATLAS) {
    if (mAtlasBuffer.get()) {
        Caches::getInstance().assetAtlas.init(mAtlasBuffer, mAtlasMap, mAtlasMapSize);
        Caches::getInstance().assetAtlas.init(mAtlasBuffer, mAtlasMap, mAtlasMapSize);
    }
    }
}
}