summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyungchan Kim <hyungchan2.kim@lge.com>2021-03-03 09:58:14 +0900
committerHyungchan Kim <hyungchan2.kim@lge.com>2021-03-25 15:37:55 +0900
commit3dcdd89dd158306784159d673a1be76a32036b14 (patch)
tree3698e32cb71321a724004cb813729aa68c7551c0
parent5577cbaac59e7fc198ea2c98c1e4268779fbf0b4 (diff)
downloadqtbase-3dcdd89dd158306784159d673a1be76a32036b14.tar.gz
Fix compilation error when LTTng enabled
Updates tracepoint for qtgui and qtopengl fit to current source code. Change-Id: I2e8ecc86a37942425734202a11bbc792e8f27bf3 Reviewed-by: Hyungchan Kim <hyungchan2.kim@lge.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
-rw-r--r--src/gui/qtgui.tracepoints4
-rw-r--r--src/gui/text/qfontdatabase.cpp4
-rw-r--r--src/opengl/qtopengl.tracepoints15
3 files changed, 16 insertions, 7 deletions
diff --git a/src/gui/qtgui.tracepoints b/src/gui/qtgui.tracepoints
index 932115fd97..adf13d8f84 100644
--- a/src/gui/qtgui.tracepoints
+++ b/src/gui/qtgui.tracepoints
@@ -11,8 +11,8 @@ QGuiApplicationPrivate_processWindowSystemEvent_entry(int type)
QGuiApplicationPrivate_processWindowSystemEvent_exit()
QFontDatabase_addApplicationFont(const QString &filename)
-QFontDatabase_load(const QString &family, int pointSize)
-QFontDatabase_loadEngine(const QString &family, int pointSize)
+QFontDatabase_load(const QStringList &family, int pointSize)
+QFontDatabase_loadEngine(const QStringList &families, int pointSize)
QFontDatabasePrivate_addAppFont(const QString &fileName)
QImageData_create_entry(const QSize &size, QImage::Format format)
diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp
index b35cef6a9a..a105b5dd51 100644
--- a/src/gui/text/qfontdatabase.cpp
+++ b/src/gui/text/qfontdatabase.cpp
@@ -820,7 +820,7 @@ QFontEngine *loadEngine(int script, const QFontDef &request,
QFontEngine *engine = loadSingleEngine(script, request, family, foundry, style, size);
if (engine && !(request.styleStrategy & QFont::NoFontMerging) && !engine->symbol) {
- Q_TRACE(QFontDatabase_loadEngine, request.family, request.pointSize);
+ Q_TRACE(QFontDatabase_loadEngine, request.families, request.pointSize);
QPlatformFontDatabase *pfdb = QGuiApplicationPrivate::platformIntegration()->fontDatabase();
QFontEngineMulti *pfMultiEngine = pfdb->fontEngineMulti(engine, QChar::Script(script));
@@ -2492,7 +2492,7 @@ void QFontDatabasePrivate::load(const QFontPrivate *d, int script)
QFontEngine *fe = nullptr;
- Q_TRACE(QFontDatabase_load, req.family, req.pointSize);
+ Q_TRACE(QFontDatabase_load, req.families, req.pointSize);
req.fallBackFamilies = fallBackFamilies;
if (!req.fallBackFamilies.isEmpty())
diff --git a/src/opengl/qtopengl.tracepoints b/src/opengl/qtopengl.tracepoints
index 3c3043d3d4..1602f572d4 100644
--- a/src/opengl/qtopengl.tracepoints
+++ b/src/opengl/qtopengl.tracepoints
@@ -1,3 +1,12 @@
-QOpenGLFramebufferObjectPrivate_init(QOpenGLFramebufferObject *qfbo, const QSize &size, QOpenGLFramebufferObject::Attachment attachment, GLenum texture_target, GLenum internal_format, GLint samples, bool mipmap)
-QOpenGL2PaintEngineExPrivate_drawTexture(const QOpenGLRect& dest, const QOpenGLRect& src, const QSize &textureSize, bool opaque, bool pattern)
-QOpenGLTextureCache_bindTexture(QOpenGLContext *context, qint64 key, const QImage &image, QOpenGLTextureUploader::BindOptions options)
+{
+#include <private/qopengl2pexvertexarray_p.h>
+#include <private/qopengltextureuploader_p.h>
+#include <qopenglframebufferobject.h>
+}
+
+QOpenGLFramebufferObjectPrivate_init_entry(QOpenGLFramebufferObject *qfbo, const QSize &size, QOpenGLFramebufferObject::Attachment attachment, GLenum texture_target, GLenum internal_format, GLint samples, bool mipmap)
+QOpenGLFramebufferObjectPrivate_init_exit()
+QOpenGL2PaintEngineExPrivate_drawTexture_entry(const QOpenGLRect& dest, const QOpenGLRect& src, const QSize &textureSize, bool opaque, bool pattern)
+QOpenGL2PaintEngineExPrivate_drawTexture_exit()
+QOpenGLTextureCache_bindTexture_entry(QOpenGLContext *context, qint64 key, const QImage &image, QOpenGLTextureUploader::BindOptions options)
+QOpenGLTextureCache_bindTexture_exit()