summaryrefslogtreecommitdiffstats
path: root/libs/hwui
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-08-03 15:34:52 -0700
committerJohn Reck <jreck@google.com>2015-08-03 22:47:49 +0000
commit6d4d0db312fa8a9fce629dd92aa133c6f8249cf8 (patch)
treedd6fe51ff86aaf5e281d57cd36011c1f3873e35c /libs/hwui
parent0faca96f939b8530e5387a30e317d852f39f689f (diff)
downloadframeworks_base-6d4d0db312fa8a9fce629dd92aa133c6f8249cf8.zip
frameworks_base-6d4d0db312fa8a9fce629dd92aa133c6f8249cf8.tar.gz
frameworks_base-6d4d0db312fa8a9fce629dd92aa133c6f8249cf8.tar.bz2
Disable skipping frames on empty damage
Bug: 22592975 Optimization added in MNC is not quite correct, occasionally it will fail to repaint when it was supposed to leading to buffer corruption. Disable the optimization for now. Change-Id: I34dfdfb357eda298198043ded7335d4588a003fd
Diffstat (limited to 'libs/hwui')
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index e472e93..6dfb6e8 100644
--- a/libs/hwui/renderthread/CanvasContext.cpp
+++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -229,10 +229,11 @@ void CanvasContext::draw() {
SkRect dirty;
mDamageAccumulator.finish(&dirty);
- if (dirty.isEmpty() && Properties::skipEmptyFrames) {
- mCurrentFrameInfo->addFlag(FrameInfoFlags::SkippedFrame);
- return;
- }
+ // TODO: Re-enable after figuring out cause of b/22592975
+// if (dirty.isEmpty() && Properties::skipEmptyFrames) {
+// mCurrentFrameInfo->addFlag(FrameInfoFlags::SkippedFrame);
+// return;
+// }
mCurrentFrameInfo->markIssueDrawCommandsStart();