mirror of
https://github.com/TextureGroup/Texture.git
synced 2026-04-07 19:17:39 +00:00
Cover the other background dealloc surfaces
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
[self animatedImageSet:animatedImage previousAnimatedImage:previousAnimatedImage];
|
||||
|
||||
// Animated image can take while to dealloc, do it off the main queue
|
||||
if (previousAnimatedImage != nil) {
|
||||
if (previousAnimatedImage != nil && ASActivateExperimentalFeature(ASExperimentalOOMBackgroundDeallocDisable) == NO) {
|
||||
ASPerformBackgroundDeallocation(&previousAnimatedImage);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -268,7 +268,7 @@ typedef void (^ASImageNodeDrawParametersBlock)(ASWeakMapEntry *entry);
|
||||
CGSize oldImageSize = oldImage.size;
|
||||
BOOL shouldReleaseImageOnBackgroundThread = oldImageSize.width > kMinReleaseImageOnBackgroundSize.width
|
||||
|| oldImageSize.height > kMinReleaseImageOnBackgroundSize.height;
|
||||
if (shouldReleaseImageOnBackgroundThread) {
|
||||
if (shouldReleaseImageOnBackgroundThread && ASActivateExperimentalFeature(ASExperimentalOOMBackgroundDeallocDisable) == NO) {
|
||||
ASPerformBackgroundDeallocation(&oldImage);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -548,7 +548,7 @@ typedef void(^ASMultiplexImageLoadCompletionBlock)(UIImage *image, id imageIdent
|
||||
BOOL shouldReleaseImageOnBackgroundThread = imageSize.width > kMinReleaseImageOnBackgroundSize.width ||
|
||||
imageSize.height > kMinReleaseImageOnBackgroundSize.height;
|
||||
[self _setImage:nil];
|
||||
if (shouldReleaseImageOnBackgroundThread) {
|
||||
if (shouldReleaseImageOnBackgroundThread && ASActivateExperimentalFeature(ASExperimentalOOMBackgroundDeallocDisable) == NO) {
|
||||
ASPerformBackgroundDeallocation(&image);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user