summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopengltexturecache.cpp
diff options
context:
space:
mode:
authorJosé Dapena Paz <jdapena@igalia.com>2014-06-13 18:48:49 +0200
committerDominik Holland <dominik.holland@qt.io>2020-06-11 09:14:32 +0200
commit6d323c0b221a3b127d80e338a42306cc34bc4d40 (patch)
treedc147872c6196404f2b90c6ef676a1717bcdf50f /src/opengl/qopengltexturecache.cpp
parentab6fd84c62ff4a72696798dcf6598dd6a44389f6 (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.cpp4
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);