Bug 1292747 (Part 3) - Clean up some comments in imgFrame related to Optimize()'s behavior. r=edwin

This commit is contained in:
Seth Fowler 2016-08-06 01:42:36 -07:00
Родитель ad2f26e773
Коммит ba8bb5de9d
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -786,11 +786,13 @@ imgFrame::UnlockImageData()
return NS_OK;
}
// Convert the data surface to a GPU surface or a single color if possible.
// This will also release mImageSurface if possible.
// Convert our data surface to a GPU surface if possible. We'll also try to
// release mImageSurface.
Optimize();
// Allow the OS to release our data surface.
// Allow the OS to release our data surface. Note that mImageSurface also
// keeps our volatile buffer alive, so this doesn't actually work unless we
// released mImageSurface in Optimize().
mVBufPtr = nullptr;
}