mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 1141819 - Don't implicitly dispatch a runnable to the main thread in RasterImage::StartDecoding. r=baku
This commit is contained in:
parent
32afe4039f
commit
ee25228a98
@ -1436,11 +1436,6 @@ RasterImage::RequestDecode()
|
||||
NS_IMETHODIMP
|
||||
RasterImage::StartDecoding()
|
||||
{
|
||||
if (!NS_IsMainThread()) {
|
||||
return NS_DispatchToMainThread(
|
||||
NS_NewRunnableMethod(this, &RasterImage::StartDecoding));
|
||||
}
|
||||
|
||||
// For decode-on-draw images, we only act on RequestDecodeForSize.
|
||||
if (mDecodeOnDraw) {
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user