Kaydet (Commit) 70dff8d4 authored tarafından Zolnai Tamás's avatar Zolnai Tamás

Ignore the swapped in graphic, but use its size

Change-Id: I75f17ab5e55119965fcede2b220979cefc1e26ab
üst ccd93fc3
......@@ -205,12 +205,15 @@ void GraphicManager::ImplCheckSizeOfSwappedInGraphics(const GraphicObject* pGrap
for (size_t i = 0, n = maObjList.size(); i < n; ++i)
{
pObj = maObjList[i];
if (pObj->meType == GRAPHIC_BITMAP && !pObj->IsSwappedOut() && pObj->GetSizeBytes() && pObj != pGraphicToIgnore)
if (pObj->meType == GRAPHIC_BITMAP && !pObj->IsSwappedOut() && pObj->GetSizeBytes())
{
aCandidates.push_back(pObj);
size_t const nSize = pObj->GetSizeBytes();
nUsedSize += nSize;
sizes.insert(std::make_pair(pObj, nSize));
if( pObj != pGraphicToIgnore )
{
aCandidates.push_back(pObj);
sizes.insert(std::make_pair(pObj, nSize));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment