commit | 2f8cd2b2b0d22d85ea7a73cb422b467a1e8b1c67 | [log] [tgz] |
---|---|---|
author | Tatenda Chipeperekwa <tatendac@codeaurora.org> | Mon Apr 14 10:36:06 2014 -0700 |
committer | Tatenda Chipeperekwa <tatendac@codeaurora.org> | Tue May 27 18:05:19 2014 -0700 |
tree | 3a537854f61a91c98101e48b61ab315e920331d9 | |
parent | adcbd901b9a4e51353113ebe20e0b4baa56e70a1 [diff] |
hwc: Handle validateAndSet failures in AD prepare call When validateAndSet fails we must reset the mDoable flag to false and close the fb device. This will prevent making a draw call using invalid resource references and prevent any fd leaks. Additionally, we should only turn AD on if there are no configuration errors during prepare call. This will prevent toggling AD between on/off state in the face of continuous failures. Change-Id: I15502dbf64c6203092aa13e001bab5d27b0e17ec