summaryrefslogtreecommitdiffstats
path: root/src/openvg
diff options
context:
space:
mode:
authorJason Barron <jbarron@trolltech.com>2009-09-23 15:50:49 +0200
committerJason Barron <jbarron@trolltech.com>2009-09-23 15:58:01 +0200
commitaed412fd14e39a356a886c5a472ceade3da56d13 (patch)
treeabc98e396f553ee4888bc40db7cba4a8cce7a1b6 /src/openvg
parent9d552fbf54a25b4bab7fff8a150ab0d03d524983 (diff)
Avoid calling ensureContext() in setGeometry.
We can delay calling ensureContext() since it will happen when painting begins anyway. There is a chance that we can get to this function when a window is being hidden and if this is the first thing that happens in the application, there is no need to call ensureContext() yet. Reviewed-by: Rhys Weatherley
Diffstat (limited to 'src/openvg')
-rw-r--r--src/openvg/qwindowsurface_vg.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/openvg/qwindowsurface_vg.cpp b/src/openvg/qwindowsurface_vg.cpp
index 1997ee8387..6cc2e273fa 100644
--- a/src/openvg/qwindowsurface_vg.cpp
+++ b/src/openvg/qwindowsurface_vg.cpp
@@ -85,7 +85,6 @@ void QVGWindowSurface::flush(QWidget *widget, const QRegion &region, const QPoin
void QVGWindowSurface::setGeometry(const QRect &rect)
{
QWindowSurface::setGeometry(rect);
- d_ptr->ensureContext(window());
}
bool QVGWindowSurface::scroll(const QRegion &area, int dx, int dy)