/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/ |
H A D | rs_ui_first_surface_render_node_drawable.cpp | 205 auto cacheImage = std::make_shared<Drawing::Image>(); in GetCompletedImage() local 214 return cacheImage; in GetCompletedImage() 228 auto cacheImage = GetCompletedImage(canvas, threadIndex, isUIFirst); in DrawCacheSurface() local 229 RSBaseRenderUtil::WriteCacheImageRenderNodeToPng(cacheImage, "cacheImage"); in DrawCacheSurface() 230 if (cacheImage == nullptr || ROSEN_EQ(cacheImage->GetWidth(), 0) || in DrawCacheSurface() 231 ROSEN_EQ(cacheImage->GetHeight(), 0)) { in DrawCacheSurface() 235 float scaleX = boundSize.x_ / static_cast<float>(cacheImage->GetWidth()); in DrawCacheSurface() 236 float scaleY = boundSize.y_ / static_cast<float>(cacheImage->GetHeight()); in DrawCacheSurface() 240 if (cacheImage->IsTextureBacked()) { in DrawCacheSurface() 242 cacheImage = cacheImage->MakeRasterImage(); in DrawCacheSurface() [all …]
|
H A D | rs_render_node_drawable.cpp | 643 auto cacheImage = GetCachedImage(canvas); in DrawCachedImage() local 647 cacheImage = cachedImageByCapture_; in DrawCachedImage() 649 if (cacheImage == nullptr) { in DrawCachedImage() 654 if (cacheImage->IsTextureBacked()) { in DrawCachedImage() 656 cacheImage = cacheImage->MakeRasterImage(); in DrawCachedImage() 659 if (cacheImage == nullptr || cacheImage->GetWidth() == 0 || cacheImage->GetHeight() == 0) { in DrawCachedImage() 676 if (IsComputeDrawAreaSucc() && DrawAutoCache(canvas, *cacheImage, in DrawCachedImage() 684 cacheImage->GetWidth(), cacheImage->GetHeight(), rsFilter->GetDescription().c_str()); in DrawCachedImage() 686 … foregroundFilter->DrawImageRect(canvas, cacheImage, Drawing::Rect(0, 0, cacheImage->GetWidth(), in DrawCachedImage() 687 … cacheImage->GetHeight()), Drawing::Rect(0, 0, cacheImage->GetWidth(), cacheImage->GetHeight())); in DrawCachedImage() [all …]
|
H A D | rs_display_render_node_drawable.cpp | 1044 auto cacheImage = mirrorDrawable.GetCacheImgForCapture(); in DrawMirrorCopy() local 1068 if (cacheImage && RSSystemProperties::GetDrawMirrorCacheImageEnabled()) { in DrawMirrorCopy() 1070 RSUniRenderUtil::ProcessCacheImage(*curCanvas_, *cacheImage); in DrawMirrorCopy() 1149 auto cacheImage = mirroredDrawable.GetCacheImgForCapture(); in DrawWiredMirrorCopy() local 1150 if (cacheImage && RSSystemProperties::GetDrawMirrorCacheImageEnabled()) { in DrawWiredMirrorCopy() 1152 RSUniRenderUtil::ProcessCacheImage(*curCanvas_, *cacheImage); in DrawWiredMirrorCopy()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image_animator/ |
H A D | image_animator_pattern.cpp | 119 for (auto& cacheImage : cacheImages_) { in SetShowingIndex() local 120 UpdateCacheImageInfo(cacheImage, nextIndex); in SetShowingIndex() 171 cacheImage.index = index; in UpdateCacheImageInfo() 172 cacheImage.isLoaded = false; in UpdateCacheImageInfo() 181 cacheImage.index = index; in UpdateCacheImageInfo() 182 cacheImage.isLoaded = false; in UpdateCacheImageInfo() 186 cacheImage.index = index; in UpdateCacheImageInfo() 187 cacheImage.isLoaded = false; in UpdateCacheImageInfo() 198 cacheImage.imageNode->MarkModifyDone(); in UpdateCacheImageInfo() 208 cacheImage.imageNode->MarkModifyDone(); in UpdateCacheImageInfo() [all …]
|
H A D | image_animator_pattern.h | 153 void UpdateCacheImageInfo(CacheImageStruct& cacheImage, int32_t index);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | skia_image.cpp | 160 auto cacheImage = cache->GetCacheImage(key); in QueryFromCache() local 161 CHECK_NULL_RETURN(cacheImage, nullptr); in QueryFromCache() 163 auto skiaImage = MakeRefPtr<SkiaImage>(cacheImage->imagePtr); in QueryFromCache() 164 skiaImage->SetUniqueID(cacheImage->uniqueId); in QueryFromCache()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/ |
H A D | drawing_image.cpp | 226 auto cacheImage = cache->GetCacheImage(key); in QueryFromCache() local 227 CHECK_NULL_RETURN(cacheImage, nullptr); in QueryFromCache() 229 auto rosenImage = MakeRefPtr<DrawingImage>(cacheImage->imagePtr); in QueryFromCache() 230 rosenImage->SetUniqueID(cacheImage->uniqueId); in QueryFromCache()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/ |
H A D | image_pattern.cpp | 628 for (auto& cacheImage : cacheImages_) { in OnDirtyLayoutWrapperSwap() local 629 UpdateCacheImageInfo(cacheImage, nextIndex); in OnDirtyLayoutWrapperSwap() 1819 for (auto& cacheImage : cacheImages_) { in SetShowingIndex() local 1820 UpdateCacheImageInfo(cacheImage, nextIndex); in SetShowingIndex() 1858 void ImagePattern::UpdateCacheImageInfo(CacheImageStruct& cacheImage, int32_t index) in UpdateCacheImageInfo() argument 1878 cacheImage.index = index; in UpdateCacheImageInfo() 1879 cacheImage.isLoaded = false; in UpdateCacheImageInfo() 1882 SetColorFilter(cacheImage.imageNode); in UpdateCacheImageInfo() 1883 SetImageFit(cacheImage.imageNode); in UpdateCacheImageInfo() 1890 cacheImage.imageNode->MarkModifyDone(); in UpdateCacheImageInfo() [all …]
|
H A D | image_pattern.h | 481 void UpdateCacheImageInfo(CacheImageStruct& cacheImage, int32_t index);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/ |
H A D | canvas_paint_method.cpp | 208 auto cacheImage = imageCache_->GetCacheImage(src); in CloseImageBitmap() local 209 CHECK_NULL_VOID(cacheImage); in CloseImageBitmap() 210 CHECK_NULL_VOID(cacheImage->imagePtr); in CloseImageBitmap()
|
H A D | custom_paint_paint_method.cpp | 301 auto cacheImage = imageCache_->GetCacheImage(src); in GetImage() local 302 if (cacheImage && cacheImage->imagePtr) { in GetImage() 303 return cacheImage->imagePtr; in GetImage()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/image/ |
H A D | image_testfour_ng.cpp | 532 ImagePattern::CacheImageStruct cacheImage; variable 534 imagePattern.UpdateCacheImageInfo(cacheImage, index);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_render_node.cpp | 2962 auto cacheImage = GetCompletedImage(canvas, threadIndex, isUIFirst); in DrawCacheSurface() local 2963 if (cacheImage == nullptr) { in DrawCacheSurface() 2968 if (cacheImage->IsTextureBacked()) { in DrawCacheSurface() 2970 cacheImage = cacheImage->MakeRasterImage(); in DrawCacheSurface() 2971 if (!cacheImage) { in DrawCacheSurface() 2984 …surfaceNode->GetGravityTranslate(cacheImage->GetWidth(), cacheImage->GetHeight()) : Vector2f(0.0f,… in DrawCacheSurface() 2990 Drawing::Rect dst(0, 0, cacheImage->GetWidth(), cacheImage->GetHeight()); in DrawCacheSurface() 2992 canvas.DrawImageRect(*cacheImage, dst, samplingOptions); in DrawCacheSurface() 2994 canvas.DrawImage(*cacheImage, 0.0, 0.0, samplingOptions); in DrawCacheSurface() 3066 auto cacheImage = std::make_shared<Drawing::Image>(); in GetCompletedImage() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/ |
H A D | rosen_render_custom_paint.cpp | 3032 auto cacheImage = imageCache_->GetCacheImage(src); local 3033 if (cacheImage && cacheImage->imagePtr) { 3034 return cacheImage->imagePtr; 3058 auto cacheImage = imageCache_->GetCacheImage(src); local 3059 if (cacheImage && cacheImage->imagePtr) { 3060 return cacheImage->imagePtr;
|