Home
last modified time | relevance | path

Searched refs:CacheType (Results 1 – 25 of 35) sorted by relevance

12

/ohos5.0/drivers/interface/display/composer/cache_manager/
H A Dcache_manager.h36 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 Ddevice_cache.cpp166 if (CacheType() == DEVICE_TYPE_VIRTUAL) { in SetVirtualDisplayBuffer()
184 DeviceCache::DeviceType DeviceCache::CacheType() const in CacheType() function in OHOS::HDI::Display::Composer::DeviceCache
H A Ddevice_cache.h52 DeviceType CacheType() const;
H A Ddevice_cache_manager.cpp86 … DISPLAY_CHK_RETURN((cache == nullptr) || (cache->CacheType() != DeviceCache::DEVICE_TYPE_VIRTUAL), in DestroyVirtualDisplayCache()
/ohos5.0/foundation/arkui/ui_lite/frameworks/font/
H A Dglyphs_cache.cpp48 …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 Dglyphs_cache.h56 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 Drs_property_drawable_bounds_geometry_test.cpp799 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 Drs_paint_filter_canvas.h205 using CacheType = Drawing::CacheType; variable
207 void SetCacheType(CacheType type);
208 Drawing::CacheType GetCacheType() const override;
356 CacheType cacheType_ { RSPaintFilterCanvas::CacheType::UNDEFINED };
H A Drs_render_node.h427 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 Drs_canvas_render_node.cpp95 if (GetCacheType() == CacheType::CONTENT) { in OnTreeStateChanged()
96 SetCacheType(CacheType::NONE); in OnTreeStateChanged()
H A Drs_effect_render_node.cpp84 canvas.GetCacheType() == RSPaintFilterCanvas::CacheType::OFFSCREEN) { in ProcessRenderBeforeChildren()
H A Drs_paint_filter_canvas.cpp826 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 Drs_effect_render_node_test.cpp120 paintFilterCanvas.SetCacheType(RSPaintFilterCanvas::CacheType::OFFSCREEN);
122 paintFilterCanvas.SetCacheType(RSPaintFilterCanvas::CacheType::UNDEFINED);
H A Drs_canvas_render_node_test.cpp223 rsCanvasRenderNode.SetCacheType(CacheType::CONTENT);
227 EXPECT_EQ(rsCanvasRenderNode.GetCacheType(), CacheType::NONE);
H A Drs_render_node_test.cpp190 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 Dcore_canvas.h71 enum CacheType : uint8_t { enum
701 virtual Drawing::CacheType GetCacheType() const;
H A Dcore_canvas.cpp542 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 Drs_filter_cache_manager.h80 enum CacheType : uint8_t { enum
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_property_drawable_bounds_geometry.cpp490 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 Ddraw_cmd_list.cpp339 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 Drs_render_thread_visitor.cpp642 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 Drs_common_def.h112 enum class CacheType : uint8_t { enum
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_render_node_drawable_autocache.cpp179 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 Drs_render_node_drawable_test.cpp290 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 Drs_property_drawable_background_test.cpp93 filterCanvas->SetCacheType(Drawing::CacheType::ENABLED);
99 filterCanvas->SetCacheType(Drawing::CacheType::UNDEFINED);

12