summaryrefslogtreecommitdiffstats
path: root/src/openvg/qpaintengine_vg.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-11-25 04:13:51 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-11-25 04:13:51 (GMT)
commit5b5c098bda20cab7825207640cc69230c1864586 (patch)
treeade0f2de0b9da54f7899dc67ad7f1a18f6d3686f /src/openvg/qpaintengine_vg.cpp
parent410ed81027232e669bf6a28699fa833e56a27ef7 (diff)
downloadQt-5b5c098bda20cab7825207640cc69230c1864586.zip
Qt-5b5c098bda20cab7825207640cc69230c1864586.tar.gz
Qt-5b5c098bda20cab7825207640cc69230c1864586.tar.bz2
Make QVGCompositionHelper::blitWindow() more generic
Previously, the composition helper would use the VG window surface private structure to get the VGImage to blit. This change passes the VGImage and size values in directly so that the composition helper can also be used to blit GL surfaces that have been converted into a VGImage via an EGLImage. Reviewed-by: Tom Cooksey
Diffstat (limited to 'src/openvg/qpaintengine_vg.cpp')
-rw-r--r--src/openvg/qpaintengine_vg.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp
index fda4b10..ba97d4f 100644
--- a/src/openvg/qpaintengine_vg.cpp
+++ b/src/openvg/qpaintengine_vg.cpp
@@ -3459,14 +3459,11 @@ void QVGCompositionHelper::endCompositing()
}
void QVGCompositionHelper::blitWindow
- (QVGEGLWindowSurfacePrivate *surface, const QRect& rect,
- const QPoint& topLeft, int opacity)
+ (VGImage image, const QSize& imageSize,
+ const QRect& rect, const QPoint& topLeft, int opacity)
{
- // Get the VGImage that is acting as a back buffer for the window.
- VGImage image = surface->surfaceImage();
if (image == VG_INVALID_HANDLE)
return;
- QSize imageSize = surface->surfaceSize();
// Determine which sub rectangle of the window to draw.
QRect sr = rect.translated(-topLeft);