hwc2: Skip SDM prepare for consecutive GPU composed frames

Skip SDM prepare, if all the layers in the current draw cycle are
marked as Skip and previous draw cycle had GPU Composition, since
the resources for GPU Target layer, have already been validated and
configured to driver. It avoids unnecessary CPU cycles in Strategy,
Resource Manager, DAL, etc. in SDM and the Validate IOCTL in driver.

CRs-Fixed: 2269870
Bug: 109917573
Change-Id: I019a13d0eaf08c01d710555ff99f104d2a3d24ce
2 files changed