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

Commit 7f32b426 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 5992

* changes:
  Allocate 16MB for surfaces on Firstone, since 8MB is way to small for our bigger screen.
parents fbc7c1a7 ff80ceb8
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ namespace android {
 * (PMEM is used for 2D acceleration)
 * 8 MB of address space per client should be enough.
 */
static const int PMEM_SIZE = int(8 * 1024 * 1024);
static const int PMEM_SIZE = int(16 * 1024 * 1024);

int SurfaceHeapManager::global_pmem_heap = 0;

@@ -77,12 +77,16 @@ void SurfaceHeapManager::onFirstRef()
    if (global_pmem_heap) {
        const char* device = "/dev/pmem";
        mPMemHeap = new PMemHeap(device, PMEM_SIZE);
        if (mPMemHeap->base() == MAP_FAILED) {
            mPMemHeap.clear();
            mPMemHeap = new PMemHeap(device, PMEM_SIZE/2);
            if (mPMemHeap->base() == MAP_FAILED) {
                mPMemHeap.clear();
                global_pmem_heap = 0;
            }
        }
    }
}

sp<MemoryDealer> SurfaceHeapManager::createHeap(
        uint32_t flags,