emulator opengl: pool of fixups to the system components.
Those fixes make the system load without failure. Also the flinger and bootanimation are running. Change-Id: Ieb7039e76c444df778a421a07bccc48514199245
This commit is contained in:
committed by
Guy Zadickario
parent
2220d27302
commit
6a79e88f01
@@ -29,6 +29,7 @@
|
||||
#include <cutils/log.h>
|
||||
|
||||
|
||||
#define DBG_FUNC DBG("%s\n", __FUNCTION__)
|
||||
//
|
||||
// our private gralloc module structure
|
||||
//
|
||||
@@ -163,7 +164,7 @@ static int gralloc_alloc(alloc_device_t* dev,
|
||||
*pStride = bpr / bpp;
|
||||
}
|
||||
|
||||
LOGD("gralloc_alloc ashmem_size=%d\n", ashmem_size);
|
||||
LOGD("gralloc_alloc ashmem_size=%d, tid %d\n", ashmem_size, gettid());
|
||||
|
||||
//
|
||||
// Allocate space in ashmem if needed
|
||||
@@ -193,6 +194,8 @@ static int gralloc_alloc(alloc_device_t* dev,
|
||||
delete cb;
|
||||
return err;
|
||||
}
|
||||
|
||||
cb->setFd(fd);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -299,6 +302,12 @@ static int gralloc_device_close(struct hw_device_t *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fb_compositionComplete(struct framebuffer_device_t* dev)
|
||||
{
|
||||
LOGI("fb_compositionComplete");
|
||||
return 0;
|
||||
}
|
||||
|
||||
//
|
||||
// Framebuffer device functions
|
||||
//
|
||||
@@ -650,6 +659,7 @@ static int gralloc_device_open(const hw_module_t* module,
|
||||
if (NULL == dev) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
memset(dev, 0, sizeof(fb_device_t));
|
||||
|
||||
// Initialize our device structure
|
||||
//
|
||||
@@ -659,7 +669,8 @@ static int gralloc_device_open(const hw_module_t* module,
|
||||
dev->device.common.close = fb_close;
|
||||
dev->device.setSwapInterval = fb_setSwapInterval;
|
||||
dev->device.post = fb_post;
|
||||
dev->device.setUpdateRect = 0; //XXX: fb_setUpdateRect;
|
||||
dev->device.setUpdateRect = fb_setUpdateRect;
|
||||
dev->device.compositionComplete = fb_compositionComplete; //XXX: this is a dummy
|
||||
|
||||
const_cast<uint32_t&>(dev->device.flags) = 0;
|
||||
const_cast<uint32_t&>(dev->device.width) = width;
|
||||
|
||||
Reference in New Issue
Block a user