summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformwindow.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2014-02-11 11:45:58 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-13 20:40:42 +0100
commit5b422304a9b97b628dc9990fd67e2f293d535b41 (patch)
treebc7a7898b473dded6a1b5d7290e6c771ff4890a5 /src/gui/kernel/qplatformwindow.h
parente8ba6922c33c4844487b7eb9c7c2038ae65d4920 (diff)
Expose QPlatformWindow::invalidateSurface as a virtual function.
This can be quite useful on some embedded systems to free up graphics memory when windows are not used. QEglFSWindow already implements the function. Change-Id: I79b08efbd3c67d7be34df6a0e12dd184a92d48c5 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/gui/kernel/qplatformwindow.h')
-rw-r--r--src/gui/kernel/qplatformwindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformwindow.h b/src/gui/kernel/qplatformwindow.h
index 0adeb223f1..39bd8324a0 100644
--- a/src/gui/kernel/qplatformwindow.h
+++ b/src/gui/kernel/qplatformwindow.h
@@ -132,6 +132,8 @@ public:
virtual void setAlertState(bool enabled);
virtual bool isAlertState() const;
+ virtual void invalidateSurface();
+
static QRect initialGeometry(const QWindow *w,
const QRect &initialGeometry, int defaultWidth, int defaultHeight);