commit | c96955d9bb997b51be5fa929b5a67349d0459c3a | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Fri Feb 26 14:56:44 2016 -0800 |
committer | John Reck <jreck@google.com> | Fri Feb 26 14:58:13 2016 -0800 |
tree | 1f4f44872d9fe4054a7d9f4daf3fb5e92664f30c | |
parent | f4db3d253ef533f6992217fcbb3119a091172d94 [diff] [blame] |
Always swap buffers if using partial update extension Bug: 27379093 Change-Id: Ifda18287248e4ae07d4bf2ae9642a9d23039e81f
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index 4f528b1..249d83f 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -476,7 +476,7 @@ // metrics the frame was swapped at this point mCurrentFrameInfo->markSwapBuffers(); - if (drew) { + if (drew || mEglManager.damageRequiresSwap()) { if (CC_UNLIKELY(!mEglManager.swapBuffers(frame, screenDirty))) { setSurface(nullptr); }