fix [2785833] valgrind error in android::Layer::requestBuffer
fix uninitialized variable Change-Id: I99e1b619ae8c88dd9d77b3abf4762f801019047e
This commit is contained in:
@@ -160,6 +160,7 @@ status_t Layer::setBuffers( uint32_t w, uint32_t h,
|
|||||||
const uint32_t hwFlags = hw.getFlags();
|
const uint32_t hwFlags = hw.getFlags();
|
||||||
|
|
||||||
mFormat = format;
|
mFormat = format;
|
||||||
|
mReqFormat = format;
|
||||||
mWidth = w;
|
mWidth = w;
|
||||||
mHeight = h;
|
mHeight = h;
|
||||||
mSecure = (flags & ISurfaceComposer::eSecure) ? true : false;
|
mSecure = (flags & ISurfaceComposer::eSecure) ? true : false;
|
||||||
|
|||||||
Reference in New Issue
Block a user