Escher: Use dirty-tracking for View::redraw

Change-Id: I95da4eee9218784744ac4abc53328d3f537bede6
This commit is contained in:
Romain Goyet
2016-06-01 17:02:57 +02:00
parent 4a1497e659
commit 93ca2f6475
15 changed files with 67 additions and 38 deletions

View File

@@ -8,6 +8,10 @@ Window::Window() :
{
}
void Window::redraw() {
View::redraw(bounds());
}
const Window * Window::window() const {
return this;
}
@@ -16,7 +20,7 @@ int Window::numberOfSubviews() const {
return (m_contentView == nullptr ? 0 : 1);
}
const View * Window::subview(int index) const {
View * Window::subview(int index) {
assert(m_contentView != nullptr && index == 0);
return m_contentView;
}