OSDN Git Service

Segmentation fault fix with only one cursor layer
authorPallavi G <pallavi.g@intel.com>
Fri, 23 Jun 2017 08:50:29 +0000 (14:20 +0530)
committerPallavi G <pallavi.g@intel.com>
Fri, 23 Jun 2017 09:03:15 +0000 (14:33 +0530)
commita4c776dcc0b8a3f00644344e69c85b51cf51daa9
treeeeed5ccfce7a5cf260715e5102bdf6f1be5293f0
parent31e1479a9b09c10e316198408a931f3d3fba1190
Segmentation fault fix with only one cursor layer

In case where we have total no of layers as 1 and ie cursor,
we end up with segmentation fault and the surfaceflinger crashes.
Fixed that one cursor layer handling in the presentdisplay.

Jira: IAHWC-75
Test: Tested on Android no crash is observed when we move from full screen to
normal screen during youtube video playback in the chrome browser

Signed-off-by: Pallavi G <pallavi.g@intel.com>
os/android/drmhwctwo.cpp