diff options
| author | 2009-07-01 18:29:21 -0700 | |
|---|---|---|
| committer | 2009-07-01 18:29:21 -0700 | |
| commit | 7f32b426cd6a865ac5e6e3e9fa833e9327fb415a (patch) | |
| tree | 8130063a01cadb86a96e39e83d1aa384ad87e132 | |
| parent | fbc7c1a784b3e9b003feaa9bd39d4283b316308e (diff) | |
| parent | ff80ceb80d294a70e84a5eb5a570c1dcc4d838bd (diff) | |
Merge change 5992
* changes:
Allocate 16MB for surfaces on Firstone, since 8MB is way to small for our bigger screen.
| -rw-r--r-- | libs/surfaceflinger/VRamHeap.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/surfaceflinger/VRamHeap.cpp b/libs/surfaceflinger/VRamHeap.cpp index 68c0a5edda7a..3b1b152b949e 100644 --- a/libs/surfaceflinger/VRamHeap.cpp +++ b/libs/surfaceflinger/VRamHeap.cpp @@ -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; @@ -79,7 +79,11 @@ void SurfaceHeapManager::onFirstRef() mPMemHeap = new PMemHeap(device, PMEM_SIZE); if (mPMemHeap->base() == MAP_FAILED) { mPMemHeap.clear(); - global_pmem_heap = 0; + mPMemHeap = new PMemHeap(device, PMEM_SIZE/2); + if (mPMemHeap->base() == MAP_FAILED) { + mPMemHeap.clear(); + global_pmem_heap = 0; + } } } } |