From f105d784dae787ee54fe50952b1c9d63a6f3987e Mon Sep 17 00:00:00 2001 From: Naomi Luis Date: Mon, 26 Sep 2011 12:59:51 -0700 Subject: [PATCH] Set correct parameters in the gralloc handle Set the aligned width and height in the gralloc handle. Change-Id: I9cb2d9b681bb022bec2fa7cbe495974865f92a54 CRs-fixed: 306991 --- libgralloc-qsd8k/gpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgralloc-qsd8k/gpu.cpp b/libgralloc-qsd8k/gpu.cpp index dd410b2..af36fee 100755 --- a/libgralloc-qsd8k/gpu.cpp +++ b/libgralloc-qsd8k/gpu.cpp @@ -404,7 +404,7 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage, if (usage & GRALLOC_USAGE_HW_FB) { err = gralloc_alloc_framebuffer(size, usage, pHandle); } else { - err = gralloc_alloc_buffer(size, usage, pHandle, bufferType, format, w, h); + err = gralloc_alloc_buffer(size, usage, pHandle, bufferType, format, alignedw, alignedh); } if (err < 0) {