зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1141819 - Don't implicitly dispatch a runnable to the main thread in RasterImage::StartDecoding. r=baku
This commit is contained in:
Родитель
32afe4039f
Коммит
ee25228a98
|
@ -1436,11 +1436,6 @@ RasterImage::RequestDecode()
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
RasterImage::StartDecoding()
|
RasterImage::StartDecoding()
|
||||||
{
|
{
|
||||||
if (!NS_IsMainThread()) {
|
|
||||||
return NS_DispatchToMainThread(
|
|
||||||
NS_NewRunnableMethod(this, &RasterImage::StartDecoding));
|
|
||||||
}
|
|
||||||
|
|
||||||
// For decode-on-draw images, we only act on RequestDecodeForSize.
|
// For decode-on-draw images, we only act on RequestDecodeForSize.
|
||||||
if (mDecodeOnDraw) {
|
if (mDecodeOnDraw) {
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче