summaryrefslogtreecommitdiffstats
path: root/src/openvg/qpixmapdata_vg.cpp
diff options
context:
space:
mode:
authorJani Hautakangas <jani.hautakangas@nokia.com>2010-10-29 10:23:45 (GMT)
committerJani Hautakangas <jani.hautakangas@nokia.com>2010-10-29 10:48:55 (GMT)
commit7955c4351e163a98d78cf419b44ab6ce231cb6dc (patch)
tree466a5c5e30f435dff7f28d15a795af0adda89b1e /src/openvg/qpixmapdata_vg.cpp
parent30524cf5c745d07372b66df90235bab0080148a3 (diff)
downloadQt-7955c4351e163a98d78cf419b44ab6ce231cb6dc.zip
Qt-7955c4351e163a98d78cf419b44ab6ce231cb6dc.tar.gz
Qt-7955c4351e163a98d78cf419b44ab6ce231cb6dc.tar.bz2
Revert function renaming in QtOpenVG.
Functions were accidentally thought to be in private scope. Renaming broke BC. Reviewed-by: Jason Barron
Diffstat (limited to 'src/openvg/qpixmapdata_vg.cpp')
-rw-r--r--src/openvg/qpixmapdata_vg.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/openvg/qpixmapdata_vg.cpp b/src/openvg/qpixmapdata_vg.cpp
index 724d06d..509882b 100644
--- a/src/openvg/qpixmapdata_vg.cpp
+++ b/src/openvg/qpixmapdata_vg.cpp
@@ -75,13 +75,13 @@ QVGPixmapData::QVGPixmapData(PixelType type)
QVGPixmapData::~QVGPixmapData()
{
- destroyVGImageAndVGContext();
+ destroyImageAndContext();
#if !defined(QT_NO_EGL)
qt_vg_unregister_pixmap(this);
#endif
}
-void QVGPixmapData::destroyVGImages()
+void QVGPixmapData::destroyImages()
{
if (inImagePool) {
QVGImagePool *pool = QVGImagePool::instance();
@@ -100,23 +100,23 @@ void QVGPixmapData::destroyVGImages()
inImagePool = false;
}
-void QVGPixmapData::destroyVGImageAndVGContext()
+void QVGPixmapData::destroyImageAndContext()
{
if (vgImage != VG_INVALID_HANDLE) {
// We need to have a context current to destroy the image.
#if !defined(QT_NO_EGL)
if (context->isCurrent()) {
- destroyVGImages();
+ destroyImages();
} else {
// We don't currently have a widget surface active, but we
// need a surface to make the context current. So use the
// shared pbuffer surface instead.
context->makeCurrent(qt_vg_shared_surface());
- destroyVGImages();
+ destroyImages();
context->lazyDoneCurrent();
}
#else
- destroyVGImages();
+ destroyImages();
#endif
}
#if !defined(QT_NO_EGL)
@@ -301,7 +301,7 @@ VGImage QVGPixmapData::toVGImage()
#endif
if (recreate && prevSize != QSize(w, h))
- destroyVGImages();
+ destroyImages();
else if (recreate)
cachedOpacity = -1.0f; // Force opacity image to be refreshed later.
@@ -393,7 +393,7 @@ void QVGPixmapData::hibernate()
return;
forceToImage();
- destroyVGImageAndVGContext();
+ destroyImageAndContext();
}
void QVGPixmapData::reclaimImages()
@@ -401,7 +401,7 @@ void QVGPixmapData::reclaimImages()
if (!inImagePool)
return;
forceToImage();
- destroyVGImages();
+ destroyImages();
}
Q_DECL_IMPORT extern int qt_defaultDpiX();