status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format,
int usage, buffer_handle_t* handle, int32_t* stride)
{
ATRACE_CALL();
// make sure to not allocate a N x 0 or 0 x N buffer, since this is
// allowed from an API stand-point allocate a 1x1 buffer instead.
if (!w || !h)
w = h = 1;
// we have a h/w allocator and h/w buffer is requested
status_t err;
//ALOGD("zcfdebug [GraphicBufferAllocator::alloc] the h is : %d", h); //zcfdebug++
//ALOGD("zcfdebug [GraphicBufferAllocator::alloc] the w is : %d", w); //zcfdebug++
if(h>=1 && h<=1920)h=1920; //zcfdebug++
err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);