diff options
author | John Reck <jreck@google.com> | 2016-02-26 14:56:44 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2016-02-26 14:58:13 -0800 |
commit | c96955d9bb997b51be5fa929b5a67349d0459c3a (patch) | |
tree | 1f4f44872d9fe4054a7d9f4daf3fb5e92664f30c /libs/hwui/renderthread/EglManager.cpp | |
parent | f4db3d253ef533f6992217fcbb3119a091172d94 (diff) |
Always swap buffers if using partial update extension
Bug: 27379093
Change-Id: Ifda18287248e4ae07d4bf2ae9642a9d23039e81f
Diffstat (limited to 'libs/hwui/renderthread/EglManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/EglManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/EglManager.cpp b/libs/hwui/renderthread/EglManager.cpp index 364d4dda1e7f..ac6a28fe6289 100644 --- a/libs/hwui/renderthread/EglManager.cpp +++ b/libs/hwui/renderthread/EglManager.cpp @@ -324,6 +324,10 @@ void EglManager::damageFrame(const Frame& frame, const SkRect& dirty) { #endif } +bool EglManager::damageRequiresSwap() { + return EglExtensions.setDamage && mSwapBehavior == SwapBehavior::BufferAge; +} + bool EglManager::swapBuffers(const Frame& frame, const SkRect& screenDirty) { if (CC_UNLIKELY(Properties::waitForGpuCompletion)) { |