Escher: Rect-based dirty tracking

Change-Id: I798dd04f4b36042429105e2ccdf7cd5df554bedf
This commit is contained in:
Romain Goyet
2016-06-20 15:03:59 +02:00
parent dbebe4aa8a
commit a0d7e2243f
9 changed files with 127 additions and 68 deletions

View File

@@ -33,7 +33,7 @@ bool TextField::handleEvent(ion_event_t event) {
}
if (m_currentTextLength-1 < m_textBufferSize) {
m_textBuffer[m_currentTextLength++] = event;
markAsNeedingRedraw();
markRectAsDirty(bounds()); // TODO: Could be optimized
}
return true;
}