QPlatformBackingStore: don't hold QBackingstoreTextureInfo in QList

QBackingstoreTextureInfo is larger than a void*, so holding them in
a QList is needlessly inefficient. Worse, the code could come to
depend on the fragile property of (inefficient) QLists that
references to elements therein never are invalidated.

Change-Id: I5edf846ee8f01ae36c9314147261748270e1fdf6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
Marc Mutz 2014-08-17 20:44:39 +02:00
parent 0d4711e2f5
commit ae2de2fe99

View File

@ -100,7 +100,7 @@ public:
{
}
QList<QBackingstoreTextureInfo> textures;
QVector<QBackingstoreTextureInfo> textures;
bool locked;
};