hwcomposer: Clear mVirtualonExtActive on EXTERNAL_OFFLINE

If WFD Client APK is connected and teared down and then hdmi is connecetd
Unblank Virtual display is happening instead of ext display
this results in Display not coming up on External using HDMI.

Change-Id: Id61e9e753f81e90787e2a958f75a4f84b4469f71
Merge "hwcomposer: Clear mVirtualonExtActive on EXTERNAL_OFFLINE"
hwc: Add support for Secure display

- Identify secure display layer in the hwc_list
- Need to set both SECURE_OVERLAY and SECURE_DISPLAY flags for the secure
  display layer
- Disable idle timeout for secure display usecase, as GPU should not be
  accessing secure display layer

Change-Id: I555910db77c466b5e103b24b4f0ec7f47bb210a5
Merge "hwc: Add support for Secure display"
hwc: handle actionsafe with downscale on ext enabled

during actionsafe calculations, if downscale on ext is enabled, we need
to consider the physical display attributes.

Change-Id: Ia07218b0b8e47b91b0bf575c66478ebaeab2e2a4
hwc: Fix for MDP Downscaling limitation

  For HDMI/WFD downscaling scenario, if the downscale factor is
  >=2, MDP cannot do downscaling without BLT mode. Since BLT mode
  is disabled, overlay_set_failure occurs when downscale factor
  is >=2 (Ex: primary resolution 1920 x 1080, External resolution
  640 x 480). To fix this, do MDP downscaling only when downscale
  factor is < 2.

Change-Id: I6361d0290ad75abc1f39662377e590cd288a48a8
Merge "hwc: handle actionsafe with downscale on ext enabled"
Merge "hwc: Fix for MDP Downscaling limitation"
Merge branch 'jb_2.6' of git://codeaurora.org/platform/hardware/qcom/display into caf

Change-Id: Ia06358ac9d38f7c43d2acfa4dad949d2e5b27075
libhwcomposer: Optimize layer crops when possible.

With in hwc list of layers if a layer above is opaque,
deduct the opaque layers crops from all the layers below
in z-order if deduction is possible with out creating
any hole.

Change-Id: I6391a13b0501cb972b134f72b58514cb807c7613
Merge branch 'jb_2.6' of git://codeaurora.org/platform/hardware/qcom/display into cm-10.2
Merge remote-tracking branch 'cm/cm-10.2' into jb4.3