surfaceflinger: fix fencing when composition mode switches

When a layer switches from HWC composition to GLES composition, we
use the GLES rendering fence to indicate that the previous layer
buffer is released by HWC.  This is incorrect.

Bug: 68490054
Test: manual
Change-Id: I4070940c26d39251161f45682398e6987f4fba15
1 file changed