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
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
ec4b547fbf
commit
815c8f6279
@@ -121,7 +121,7 @@ static EGLImageBuffer* L_wrap(const private_handle_t *src)
|
||||
}
|
||||
|
||||
android::sp<android::GraphicBuffer> 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
|
||||
|
||||
Reference in New Issue
Block a user