/ohos5.0/drivers/interface/display/composer/cache_manager/ |
H A D | cache_manager.h | 36 template <typename IdType, typename CacheType> 79 bool InsertCache(IdType id, CacheType* cache) in InsertCache() 91 caches_[id] = std::move(std::unique_ptr<CacheType>(cache)); in InsertCache() 115 CacheType* SearchCache(IdType id) in SearchCache() 126 void TravelCaches(std::function<void (IdType id, const CacheType& cache)> func) in TravelCaches() 134 void SetCleanUpFunc(void (*func)(std::unique_ptr<CacheType>&)) in SetCleanUpFunc() argument 139 void SetInitFunc(void (*func)(std::unique_ptr<CacheType>&)) in SetInitFunc() argument 146 std::unordered_map<IdType, std::unique_ptr<CacheType>> caches_; 147 void (*cleanUpFunc_)(std::unique_ptr<CacheType>&); 148 void (*initFunc_)(std::unique_ptr<CacheType>&);
|
H A D | device_cache.cpp | 166 if (CacheType() == DEVICE_TYPE_VIRTUAL) { in SetVirtualDisplayBuffer() 184 DeviceCache::DeviceType DeviceCache::CacheType() const in CacheType() function in OHOS::HDI::Display::Composer::DeviceCache
|
H A D | device_cache.h | 52 DeviceType CacheType() const;
|
H A D | device_cache_manager.cpp | 86 … DISPLAY_CHK_RETURN((cache == nullptr) || (cache->CacheType() != DeviceCache::DEVICE_TYPE_VIRTUAL), in DestroyVirtualDisplayCache()
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/font/ |
H A D | glyphs_cache.cpp | 48 …nodeCache_ = reinterpret_cast<CacheType*>(FontRamAllocator::GetInstance().DynamicAllocate(sizeof(C… in CacheInit() 54 if (memset_s(nodeCache_, sizeof(CacheType), 0, sizeof(CacheType)) != EOK) { in CacheInit()
|
H A D | glyphs_cache.h | 56 using CacheType = GlyphCacheNode[FONT_HASH_NR][UNICODE_HASH_NR][NODE_HASH_NR]; variable 59 CacheType* nodeCache_;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/ |
H A D | rs_property_drawable_bounds_geometry_test.cpp | 799 fileCanvas.SetCacheType(RSPaintFilterCanvas::CacheType::ENABLED); 822 EXPECT_NE(fileCanvas.GetCacheType(), RSPaintFilterCanvas::CacheType::ENABLED); 824 fileCanvas.SetCacheType(RSPaintFilterCanvas::CacheType::ENABLED); 826 EXPECT_EQ(fileCanvas.GetCacheType(), RSPaintFilterCanvas::CacheType::ENABLED); 843 EXPECT_NE(fileCanvas.GetCacheType(), RSPaintFilterCanvas::CacheType::ENABLED); 845 fileCanvas.SetCacheType(RSPaintFilterCanvas::CacheType::ENABLED); 847 EXPECT_EQ(fileCanvas.GetCacheType(), RSPaintFilterCanvas::CacheType::ENABLED); 961 EXPECT_NE(fileCanvas.GetCacheType(), RSPaintFilterCanvas::CacheType::OFFSCREEN); 963 fileCanvas.SetCacheType(RSPaintFilterCanvas::CacheType::OFFSCREEN); 965 EXPECT_EQ(fileCanvas.GetCacheType(), RSPaintFilterCanvas::CacheType::OFFSCREEN); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/ |
H A D | rs_paint_filter_canvas.h | 205 using CacheType = Drawing::CacheType; variable 207 void SetCacheType(CacheType type); 208 Drawing::CacheType GetCacheType() const override; 356 CacheType cacheType_ { RSPaintFilterCanvas::CacheType::UNDEFINED };
|
H A D | rs_render_node.h | 427 void SetCacheType(CacheType cacheType); 428 CacheType GetCacheType() const; 1000 CacheType cacheType_ = CacheType::NONE;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_canvas_render_node.cpp | 95 if (GetCacheType() == CacheType::CONTENT) { in OnTreeStateChanged() 96 SetCacheType(CacheType::NONE); in OnTreeStateChanged()
|
H A D | rs_effect_render_node.cpp | 84 canvas.GetCacheType() == RSPaintFilterCanvas::CacheType::OFFSCREEN) { in ProcessRenderBeforeChildren()
|
H A D | rs_paint_filter_canvas.cpp | 826 SetCacheType(RSPaintFilterCanvas::CacheType::DISABLED); in CopyConfigurationToOffscreenCanvas() 845 void RSPaintFilterCanvas::SetCacheType(CacheType type) in SetCacheType() 849 Drawing::CacheType RSPaintFilterCanvas::GetCacheType() const in GetCacheType()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/ |
H A D | rs_effect_render_node_test.cpp | 120 paintFilterCanvas.SetCacheType(RSPaintFilterCanvas::CacheType::OFFSCREEN); 122 paintFilterCanvas.SetCacheType(RSPaintFilterCanvas::CacheType::UNDEFINED);
|
H A D | rs_canvas_render_node_test.cpp | 223 rsCanvasRenderNode.SetCacheType(CacheType::CONTENT); 227 EXPECT_EQ(rsCanvasRenderNode.GetCacheType(), CacheType::NONE);
|
H A D | rs_render_node_test.cpp | 190 CacheType type = CacheType::ANIMATE_PROPERTY; 221 CacheType type = CacheType::ANIMATE_PROPERTY; 2135 nodeTest->SetCacheType(CacheType::ANIMATE_PROPERTY); 2147 nodeTest->SetCacheType(CacheType::CONTENT); 2208 nodeTest->cacheType_ = CacheType::ANIMATE_PROPERTY; 2224 nodeTest->cacheType_ = CacheType::CONTENT; 2285 nodeTest->cacheType_ = CacheType::ANIMATE_PROPERTY; 2301 nodeTest->cacheType_ = CacheType::CONTENT;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/ |
H A D | core_canvas.h | 71 enum CacheType : uint8_t { enum 701 virtual Drawing::CacheType GetCacheType() const;
|
H A D | core_canvas.cpp | 542 Drawing::CacheType CoreCanvas::GetCacheType() const in GetCacheType() 544 return Drawing::CacheType::UNDEFINED; in GetCacheType()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/ |
H A D | rs_filter_cache_manager.h | 80 enum CacheType : uint8_t { enum
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/ |
H A D | rs_property_drawable_bounds_geometry.cpp | 490 if (canvas.GetCacheType() == RSPaintFilterCanvas::CacheType::ENABLED) { in Draw() 523 if (canvas.GetCacheType() == RSPaintFilterCanvas::CacheType::ENABLED) { in Draw() 568 if (canvas.GetCacheType() == RSPaintFilterCanvas::CacheType::ENABLED) { in Draw() 687 if (canvas.GetCacheType() == RSPaintFilterCanvas::CacheType::OFFSCREEN) { in Draw() 834 if (canvas.GetCacheType() == RSPaintFilterCanvas::CacheType::OFFSCREEN) { in Draw()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/ |
H A D | draw_cmd_list.cpp | 339 if (canvas.GetCacheType() == Drawing::CacheType::ENABLED && !isCached_) { in Playback() 341 } else if (canvas.GetCacheType() == Drawing::CacheType::DISABLED && isCached_) { in Playback()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/pipeline/ |
H A D | rs_render_thread_visitor.cpp | 642 if (node.GetCacheType() != CacheType::ANIMATE_PROPERTY) { in ProcessCanvasRenderNode() 643 node.SetCacheType(CacheType::ANIMATE_PROPERTY); in ProcessCanvasRenderNode() 657 node.SetCacheType(CacheType::NONE); in ProcessCanvasRenderNode()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_common_def.h | 112 enum class CacheType : uint8_t { enum
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/ |
H A D | rs_render_node_drawable_autocache.cpp | 179 auto isOffscreen = (canvas.GetCacheType() == RSPaintFilterCanvas::CacheType::OFFSCREEN); in BeforeDrawCacheFindRootNode()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/drawable/ |
H A D | rs_render_node_drawable_test.cpp | 290 paintFilterCanvas.SetCacheType(Drawing::CacheType::ENABLED); 490 curCanvas->SetCacheType(RSPaintFilterCanvas::CacheType::DISABLED);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/drawable/ |
H A D | rs_property_drawable_background_test.cpp | 93 filterCanvas->SetCacheType(Drawing::CacheType::ENABLED); 99 filterCanvas->SetCacheType(Drawing::CacheType::UNDEFINED);
|