Bug 1069652 (Followup) - Fix a comment that was totally wrong. r=me DONTBUILD

This commit is contained in:
Seth Fowler 2014-09-23 16:17:35 -07:00
Родитель 8648e9ccc2
Коммит b570850d4d
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -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;
}