зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1069652 (Followup) - Fix a comment that was totally wrong. r=me DONTBUILD
This commit is contained in:
Родитель
8648e9ccc2
Коммит
b570850d4d
|
@ -411,9 +411,10 @@ nsresult imgFrame::Optimize()
|
|||
}
|
||||
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
// On Android, free mImageSurface unconditionally if we're discardable.
|
||||
// On Android, free mImageSurface unconditionally if we're discardable. This
|
||||
// allows the operating system to free our volatile buffer.
|
||||
// XXX(seth): We'd eventually like to do this on all platforms, but right now
|
||||
// we'd read back from the GPU too much to make it worthwhile.
|
||||
// converting raw memory to a SourceSurface is expensive on some backends.
|
||||
if (mDiscardable) {
|
||||
mImageSurface = nullptr;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче