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
Revert "HWC: Check for proper MDP version to enable C2D comp"

This reverts commit 88e2b9cef6827506467599995e921374ff334ee0.

Change-Id: Ie8b337a542dca223d7476ca5cd1eb50961dc1b15
hwc: make C2D composition conditional based on compile time flag

* The original check seems to do a very poor job of checking whether
  this code path should be used. Make this a compile time option such
  that devices which need this can select it for themselves.

Change-Id: I54f685effe366cd409e59ac5e8984b3028208072
hwc: add missing optional C2D composition flag

Change-Id: Ie911351a6fb2ab6dff22f7b2b70ce189e38a2eed
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 kitkat

Conflicts:
	libhwcomposer/hwc.cpp
	libhwcomposer/hwc_utils.cpp
	libhwcomposer/hwc_utils.h