sf: Clear FrameBuffer only if there are GLES composed layers

Clear FrameBuffer Target only if there are layers to be composed by
GLES. Otherwise, it results unnecessary gl calls and increases power
consumption in full MDP comp use cases.

Change-Id: Ib84c4fe154bb67668e4e8b8ce2f2328c55aed7c6
Merge remote-tracking branch 'cm/cm-11.0' into HEAD
Merge branch 'kk44' of https://github.com/VanirAOSP/frameworks_native into vanir