am db5827d3: am 5878444f: SurfaceFlinger: Listen to HWC invalidate

* commit 'db5827d314ddca3d473947b4ef49e811fad70069':
  SurfaceFlinger: Listen to HWC invalidate
This commit is contained in:
Dan Stoza 2014-12-04 16:15:54 +00:00 committed by Android Git Automerger
commit d6739d5e44
1 changed files with 4 additions and 2 deletions

View File

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