зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1292747 (Part 3) - Clean up some comments in imgFrame related to Optimize()'s behavior. r=edwin
This commit is contained in:
Родитель
ad2f26e773
Коммит
ba8bb5de9d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче