From ce2c12be413dd843f98e632b7db83d54bf0bf4e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20M=C3=A4=C3=A4tt=C3=A4?= Date: Fri, 27 Jan 2023 08:12:40 +0200 Subject: Trace: Convert qtopengl module to use tracepointgen tool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I441455a4d49a559fb591ea5c8cffb97af66fb2b1 Reviewed-by: Hatem ElKharashy Reviewed-by: Tomi Korpipää Reviewed-by: Janne Koskinen (cherry picked from commit 4d359e2bec96507a1bc698525f4b5eda57b4a48f) Reviewed-by: Qt Cherry-pick Bot --- src/opengl/qopengltexturecache.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/opengl/qopengltexturecache.cpp') diff --git a/src/opengl/qopengltexturecache.cpp b/src/opengl/qopengltexturecache.cpp index 6d706325a5b..107380ff08c 100644 --- a/src/opengl/qopengltexturecache.cpp +++ b/src/opengl/qopengltexturecache.cpp @@ -121,6 +121,9 @@ GLuint QOpenGLTextureCache::bindTexture(QOpenGLContext *context, const QImage &i return id; } +Q_TRACE_POINT(qtopengl, QOpenGLTextureCache_bindTexture_entry, QOpenGLContext *context, qint64 key, const unsigned char *image, int options); +Q_TRACE_POINT(qtopengl, QOpenGLTextureCache_bindTexture_exit); + GLuint QOpenGLTextureCache::bindTexture(QOpenGLContext *context, qint64 key, const QImage &image, QOpenGLTextureUploader::BindOptions options) { Q_TRACE_SCOPE(QOpenGLTextureCache_bindTexture, context, key, image.bits(), options); -- cgit v1.2.3