mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2025-01-08 09:53:20 +00:00
!36332 fix full screen problem
Merge pull request !36332 from lukewang1/fs
This commit is contained in:
commit
725232e25c
@ -581,6 +581,12 @@ void ImagePattern::CreateObscuredImage()
|
||||
|
||||
void ImagePattern::LoadImage(const ImageSourceInfo& src, const PropertyChangeFlag& propertyChangeFlag)
|
||||
{
|
||||
if (loadingCtx_) {
|
||||
auto srcPixelMap = src.GetPixmap();
|
||||
auto loadPixelMap = loadingCtx_->GetSourceInfo().GetPixmap();
|
||||
isPixelMapChanged_ = !srcPixelMap || !loadPixelMap || srcPixelMap->GetRawPixelMapPtr() !=
|
||||
loadPixelMap->GetRawPixelMapPtr();
|
||||
}
|
||||
LoadNotifier loadNotifier(CreateDataReadyCallback(), CreateLoadSuccessCallback(), CreateLoadFailCallback());
|
||||
loadNotifier.onDataReadyComplete_ = CreateCompleteCallBackInDataReady();
|
||||
|
||||
@ -615,12 +621,6 @@ void ImagePattern::LoadImageDataIfNeed()
|
||||
auto src = imageLayoutProperty->GetImageSourceInfo().value_or(ImageSourceInfo(""));
|
||||
UpdateInternalResource(src);
|
||||
|
||||
if (loadingCtx_) {
|
||||
auto srcPixelMap = src.GetPixmap();
|
||||
auto loadPixelMap = loadingCtx_->GetSourceInfo().GetPixmap();
|
||||
isPixelMapChanged_ = !srcPixelMap || !loadPixelMap || srcPixelMap->GetRawPixelMapPtr() !=
|
||||
loadPixelMap->GetRawPixelMapPtr();
|
||||
}
|
||||
if (!loadingCtx_ || loadingCtx_->GetSourceInfo() != src || isImageQualityChange_) {
|
||||
LoadImage(src, imageLayoutProperty->GetPropertyChangeFlag());
|
||||
} else if (IsSupportImageAnalyzerFeature()) {
|
||||
|
@ -1566,11 +1566,11 @@ void VideoPattern::OnFullScreenChange(bool isFullScreen)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (isFullScreen && isEnableAnalyzer_ && isAnalyzerCreated_) {
|
||||
if (isEnableAnalyzer_) {
|
||||
if (!imageAnalyzerManager_) {
|
||||
EnableAnalyzer(isEnableAnalyzer_);
|
||||
}
|
||||
if (imageAnalyzerManager_) {
|
||||
if (imageAnalyzerManager_ && isAnalyzerCreated_) {
|
||||
StartImageAnalyzer();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user