From 6438cacf1ad414a85a7786004c510a2bd9a1a116 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 15 Oct 2014 17:18:01 +0200 Subject: Add texture deletion events to scene graph profiler It seems those were forgotten when the scene graph profiler was refactored. Change-Id: I4cf5f1cae701ec4ff64659bd023fb5941715e7e1 Reviewed-by: Kai Koehne --- plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp index 9e3bb96b18..27998d313f 100644 --- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp +++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp @@ -54,7 +54,8 @@ static const char *StageLabels[] = { QT_TRANSLATE_NOOP("MainView", "Texture Convert"), QT_TRANSLATE_NOOP("MainView", "Texture Swizzle"), QT_TRANSLATE_NOOP("MainView", "Texture Upload"), - QT_TRANSLATE_NOOP("MainView", "Texture Mipmap") + QT_TRANSLATE_NOOP("MainView", "Texture Mipmap"), + QT_TRANSLATE_NOOP("MainView", "Texture Delete") }; enum SceneGraphCategoryType { @@ -96,6 +97,7 @@ enum SceneGraphStage { TextureSwizzle, TextureUpload, TextureMipmap, + TextureDeletion, MaximumTextureStage, MaximumSceneGraphStage = MaximumTextureStage @@ -246,6 +248,11 @@ void SceneGraphTimelineModel::loadData() d->insert(startTime, event.numericData5, event.typeIndex, TextureMipmap); break; } + case QmlDebug::SceneGraphTextureDeletion: { + d->insert(event.startTime - event.numericData1, event.numericData1, event.typeIndex, + TextureDeletion); + break; + } case QmlDebug::SceneGraphPolishAndSync: { qint64 startTime = event.startTime - event.numericData1 - event.numericData2 - event.numericData3 - event.numericData4; -- cgit v1.2.3