Allocate 16MB for surfaces on Firstone, since 8MB is way to small for our bigger screen.

This commit is contained in:
Mathias Agopian
2009-07-01 17:47:38 -07:00
parent 8529fc3a15
commit ff80ceb80d

View File

@@ -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;
}
}
}
}