am 5878444f: SurfaceFlinger: Listen to HWC invalidate

* commit '5878444fb8da043021f30d3de739531f15390df5':
  SurfaceFlinger: Listen to HWC invalidate
This commit is contained in:
Dan Stoza 2014-12-03 20:43:29 +00:00 committed by Android Git Automerger
commit db5827d314

View File

@ -835,9 +835,11 @@ void SurfaceFlinger::onMessageReceived(int32_t what) {
case MessageQueue::INVALIDATE: { case MessageQueue::INVALIDATE: {
bool refreshNeeded = handleMessageTransaction(); bool refreshNeeded = handleMessageTransaction();
refreshNeeded |= handleMessageInvalidate(); refreshNeeded |= handleMessageInvalidate();
refreshNeeded |= mRepaintEverything;
if (refreshNeeded) { if (refreshNeeded) {
// Signal a refresh if a transaction modified the window state or if // Signal a refresh if a transaction modified the window state,
// a new buffer was latched // a new buffer was latched, or if HWC has requested a full
// repaint
signalRefresh(); signalRefresh();
} }
break; break;