libmemtrack: Fix compilation warning error

Also fix a compile warning by replacing enum with int in the
getMemory function.

Change-Id: Ic4bbba425486bb7f456e928968afa5f2b04ca7ea
liboverlay: Rotator hangs on playing VP9 tile encoded video

VP9 tile encoded video is of Android YV12(MDP_Y_CR_CB_GH2V2) format
Rotator hangs if the source image height is not multiple of 4
for 1/2 downscaling, multiple of 8 for 1/4 downscaling and
multiple of 16 for 1/8 downscaling

Change-Id: I985805e66fd979168c157620eacef711b030e519
CRs-Fixed: 613645
Merge "libmemtrack: Fix compilation warning error"
Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video"
Merge "Merge "hwc: Force rotator for resolution change only if one yuv""
Merge "Merge "Merge "hwc: Force rotator for resolution change only if one yuv"""
Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video""
Merge "Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video"""
Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video""
Merge "Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video"""
Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video""
Merge "Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video"""
Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video""
Merge "Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video"""
Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video""
Merge "Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video"""
Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video""
Merge "Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video"""
Invoke a padding round in certain use-cases.

* In some use-cases, it is possible that there are
no AppBuffer layers on the external/virtual layer-list
during which all the pipes will be allocated to the
primary. When layers do comeup on external/virtual
layer-list, subsequent overlay sets fail.

* This change ensures that in such cases, we invoke a
padding round on all the displays to free up the
hw resources which can be used in subsequent cycles.

Change-Id: Ifac0b8f51a8719eb55b11010d05b8d11352db054

Conflicts:
	libhwcomposer/hwc.cpp
	libhwcomposer/hwc_mdpcomp.cpp
	libhwcomposer/hwc_utils.cpp
	libhwcomposer/hwc_utils.h
Merge "Merge "liboverlay: Rotator hangs on playing VP9 tile encoded video""