Bug 1317552. Send unlocked draw notifications for images async when asked to. r=aosmond
This commit is contained in:
@@ -587,8 +587,8 @@ RasterImage::GetImageContainer(LayerManager* aManager, uint32_t aFlags)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (IsUnlocked() && mProgressTracker) {
|
||||
mProgressTracker->OnUnlockedDraw();
|
||||
if (IsUnlocked()) {
|
||||
SendOnUnlockedDraw(aFlags);
|
||||
}
|
||||
|
||||
RefPtr<layers::ImageContainer> container = mImageContainer.get();
|
||||
@@ -1343,10 +1343,11 @@ RasterImage::Draw(gfxContext* aContext,
|
||||
return DrawResult::BAD_ARGS;
|
||||
}
|
||||
|
||||
if (IsUnlocked() && mProgressTracker) {
|
||||
mProgressTracker->OnUnlockedDraw();
|
||||
if (IsUnlocked()) {
|
||||
SendOnUnlockedDraw(aFlags);
|
||||
}
|
||||
|
||||
|
||||
// If we're not using SamplingFilter::GOOD, we shouldn't high-quality scale or
|
||||
// downscale during decode.
|
||||
uint32_t flags = aSamplingFilter == SamplingFilter::GOOD
|
||||
|
||||
Reference in New Issue
Block a user