hwc: Use rotator for resolution change for all display

Rotator need to be used when resolution change happens for
primary or external display to avoid flicker or page fault.

Change-Id: If4b584c7afb7d2265b1efd7c320ac76ade199b74
hwc: send layer with non-contiguous buffers to GPU

when layer containing non-contiguous buffers are send to MDP,
flickers are observed

Conflicts:
	libhwcomposer/hwc_mdpcomp.cpp

CRs-Fixed: 624456
Change-Id: I4bcea959bd4849028368316aae39d1b0b17fa5b3
hwc: Reset previous width and height

If the current YUV count is 0 previous width and height
needs to be reset.

If FLIP is required then do not use rotator for resolution change.

Change-Id: I601cee2eddcf304b9c94d3def19d603c04b18ceb
Don't force GPU composite for older devices

Older devices (8960) don't take this very well in programs like
Netflix. Modeled on 94b8632b85e2b6588a1b3260d1f4e48462501d4b

Change-Id: Ie716bbfb6f6560d8f9f52b7b72ca0b04d1bad6b8
Fix hwcomposer build error
Fix build error with 4.8+ toolchains