Merge "Disable skipping frames on empty damage" into mnc-dev

This commit is contained in:
John Reck
2015-08-03 23:33:13 +00:00
committed by Android (Google) Code Review

View File

@@ -229,10 +229,11 @@ void CanvasContext::draw() {
SkRect dirty; SkRect dirty;
mDamageAccumulator.finish(&dirty); mDamageAccumulator.finish(&dirty);
if (dirty.isEmpty() && Properties::skipEmptyFrames) { // TODO: Re-enable after figuring out cause of b/22592975
mCurrentFrameInfo->addFlag(FrameInfoFlags::SkippedFrame); // if (dirty.isEmpty() && Properties::skipEmptyFrames) {
return; // mCurrentFrameInfo->addFlag(FrameInfoFlags::SkippedFrame);
} // return;
// }
mCurrentFrameInfo->markIssueDrawCommandsStart(); mCurrentFrameInfo->markIssueDrawCommandsStart();