Skip to content
Snippets Groups Projects
Commit 6438cacf authored by Ulf Hermann's avatar Ulf Hermann Committed by Kai Koehne
Browse files

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: default avatarKai Koehne <kai.koehne@digia.com>
parent 660478b4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment