Home
last modified time | relevance | path

Searched refs:cacheImage (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_ui_first_surface_render_node_drawable.cpp205 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 Drs_render_node_drawable.cpp643 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()
687cacheImage->GetHeight()), Drawing::Rect(0, 0, cacheImage->GetWidth(), cacheImage->GetHeight())); in DrawCachedImage()
[all …]
H A Drs_display_render_node_drawable.cpp1044 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 Dimage_animator_pattern.cpp119 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 Dimage_animator_pattern.h153 void UpdateCacheImageInfo(CacheImageStruct& cacheImage, int32_t index);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dskia_image.cpp160 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 Ddrawing_image.cpp226 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 Dimage_pattern.cpp628 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 Dimage_pattern.h481 void UpdateCacheImageInfo(CacheImageStruct& cacheImage, int32_t index);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/
H A Dcanvas_paint_method.cpp208 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 Dcustom_paint_paint_method.cpp301 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 Dimage_testfour_ng.cpp532 ImagePattern::CacheImageStruct cacheImage; variable
534 imagePattern.UpdateCacheImageInfo(cacheImage, index);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_render_node.cpp2962 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 Drosen_render_custom_paint.cpp3032 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;