diff options
author | José Dapena Paz <jdapena@igalia.com> | 2014-06-13 18:48:49 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@qt.io> | 2020-06-11 09:14:32 +0200 |
commit | 6d323c0b221a3b127d80e338a42306cc34bc4d40 (patch) | |
tree | dc147872c6196404f2b90c6ef676a1717bcdf50f /src/opengl/qopengltexturecache.cpp | |
parent | ab6fd84c62ff4a72696798dcf6598dd6a44389f6 (diff) |
Add more LTTNG tracing points
* QImage and QPixmap copy and transform operations.
* OpenGL paint engine texture cache texture upload
* OpenGL paint engine draw texture
Task-number: QTBUG-83347
Pick-to: 5.15
Change-Id: I03150d6ff80cbbcd787133d75854715cb81b5571
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/opengl/qopengltexturecache.cpp')
-rw-r--r-- | src/opengl/qopengltexturecache.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opengl/qopengltexturecache.cpp b/src/opengl/qopengltexturecache.cpp index 5256c429e0..a58570dbc4 100644 --- a/src/opengl/qopengltexturecache.cpp +++ b/src/opengl/qopengltexturecache.cpp @@ -44,6 +44,8 @@ #include <private/qimagepixmapcleanuphooks_p.h> #include <qpa/qplatformpixmap.h> +#include <qtopengl_tracepoints_p.h> + QT_BEGIN_NAMESPACE class QOpenGLTextureCacheWrapper @@ -157,6 +159,8 @@ GLuint QOpenGLTextureCache::bindTexture(QOpenGLContext *context, const QImage &i GLuint QOpenGLTextureCache::bindTexture(QOpenGLContext *context, qint64 key, const QImage &image, QOpenGLTextureUploader::BindOptions options) { + Q_TRACE_SCOPE(QOpenGLTextureCache_bindTexture, context, key, image, options); + GLuint id; QOpenGLFunctions *funcs = context->functions(); funcs->glGenTextures(1, &id); |