From 815c8f6279c20ef67ffbcfcf380dc38c2dbd421b Mon Sep 17 00:00:00 2001 From: Sushil Chauhan Date: Thu, 18 May 2017 19:51:34 -0700 Subject: [PATCH] gpu_tonemapper: Tonemap unaligned width and height of source GPU tonemapper should tonemap only the source pixels within unaligned width and height. The aligned width and height of the source buffer can have padding due to alignment requirements, hence GPU tonemapper should not tonemap on the aligned width and height of the source. CRs-Fixed: 2048764 Change-Id: I71e9dcca6da2be9663053adc744f9958cc5c1148 --- gpu_tonemapper/EGLImageWrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu_tonemapper/EGLImageWrapper.cpp b/gpu_tonemapper/EGLImageWrapper.cpp index 84f43439..dfc16d84 100644 --- a/gpu_tonemapper/EGLImageWrapper.cpp +++ b/gpu_tonemapper/EGLImageWrapper.cpp @@ -121,7 +121,7 @@ static EGLImageBuffer* L_wrap(const private_handle_t *src) } android::sp graphicBuffer = - new android::GraphicBuffer(src->width, src->height, src->format, + new android::GraphicBuffer(src->unaligned_width, src->unaligned_height, src->format, #ifndef __NOUGAT__ 1, // Layer count #endif