Home
last modified time | relevance | path

Searched refs:RectI (Results 1 - 25 of 208) sorted by relevance

123456789

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/
H A Drs_dirty_region_manager.h60 void MergeDirtyRect(const RectI& rect, bool isDebugRect = false);
62 bool MergeDirtyRectIfIntersect(const RectI& rect);
64 void MergeDirtyRectAfterMergeHistory(const RectI& rect);
66 void IntersectDirtyRect(const RectI& rect);
72 void MergeHwcDirtyRect(const RectI& rect);
75 void UpdateVisitedDirtyRects(const std::vector<RectI>& rects);
76 RectI GetIntersectedVisitedDirtyRect(const RectI& absRect) const;
77 void UpdateCacheableFilterRect(const RectI& rect);
78 bool IfCacheableFilterRectFullyCover(const RectI
[all...]
H A Drs_render_node.h128 void ForceMergeSubTreeDirtyRegion(RSDirtyRegionManager& dirtyManager, const RectI& clipRect);
130 const RectI& clipRect);
183 inline RectI GetFilterRegion() const in GetFilterRegion()
244 RectI GetChildrenRect() const;
292 void UpdateChildrenRect(const RectI& subRect);
306 const RectI& GetAbsDrawRect() const;
310 bool UpdateDrawRectAndDirtyRegion(RSDirtyRegionManager& dirtyManager, bool accumGeoDirty, const RectI& clipRect,
313 void UpdateSubTreeSkipDirtyForDFX(RSDirtyRegionManager& dirtyManager, const RectI& rect);
318 std::optional<RectI> clipRect = std::nullopt);
326 void UpdateRenderStatus(RectI in GetRenderProperties()
[all...]
H A Drs_surface_render_node.h521 void SetSrcRect(const RectI& rect) in SetSrcRect()
528 const RectI& GetSrcRect() const in GetSrcRect()
533 void SetDstRect(const RectI& dstRect) in SetDstRect()
541 const RectI& GetDstRect() const in GetDstRect()
546 const RectI& GetOriginalDstRect() const in GetOriginalDstRect()
551 const RectI& GetOriginalSrcRect() const in GetOriginalSrcRect()
741 bool SubNodeVisible(const RectI& r) const in SubNodeVisible()
835 void UpdateChildrenFilterRects(std::shared_ptr<RSRenderNode> filternode, const RectI& rect, bool cacheValid);
836 const std::vector<RectI>& GetChildrenNeedFilterRects() const;
839 std::vector<RectI> GetChildrenNeedFilterRectsWithoutCacheVali
[all...]
H A Drs_render_result.h28 RSRenderResult(const RectI& r, std::shared_ptr<Drawing::DrawCmdList> dcl) : dirty_(r), drawCmdList_(dcl) {} in RSRenderResult()
31 RectI GetDirtyRegion() const in GetDirtyRegion()
41 RectI dirty_;
H A Drs_display_render_node.h196 void UpdateSurfaceNodePos(NodeId id, RectI rect) in UpdateSurfaceNodePos()
201 void AddSurfaceNodePosByDescZOrder(NodeId id, RectI rect) in AddSurfaceNodePosByDescZOrder()
231 RectI GetLastFrameSurfacePos(NodeId id) in GetLastFrameSurfacePos()
239 RectI GetCurrentFrameSurfacePos(NodeId id) in GetCurrentFrameSurfacePos()
247 const std::vector<RectI> GetSurfaceChangedRects() const in GetSurfaceChangedRects()
249 std::vector<RectI> rects; in GetSurfaceChangedRects()
344 void SetSurfaceSrcRect(NodeId id, RectI rect) in SetSurfaceSrcRect()
349 void SetSurfaceDstRect(NodeId id, RectI rect) in SetSurfaceDstRect()
359 RectI GetSurfaceSrcRect(NodeId id) const in GetSurfaceSrcRect()
363 return RectI(); in GetSurfaceSrcRect()
[all...]
H A Drs_effect_render_node.h49 std::optional<Drawing::RectI> InitializeEffectRegion() const { return Drawing::RectI(); } in InitializeEffectRegion()
50 void SetEffectRegion(const std::optional<Drawing::RectI>& effectRegion);
85 RectI GetFilterRect() const override;
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/
H A Drs_dirty_region_manager_test.cpp30 const RectI DEFAULT_RECT = {0, 0, 100, 100};
39 static inline RectI defaultRect = RectI();
62 RectI rect = RectI(0, 0, 10, 10); in HWTEST_F()
67 ASSERT_EQ(rsDirtyManager->GetPixelAlignedRect(rect, alignedBits), RectI(0, 0, 11, 11)); in HWTEST_F()
116 RectI dirtyRect = rsDirtyManager->GetDirtyRegion(); in HWTEST_F()
128 std::vector<RectI> invalidRects; in HWTEST_F()
130 invalidRects.push_back(RectI(0, 0, -360, -360)); in HWTEST_F()
132 invalidRects.push_back(RectI( in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Drect.h41 class DRAWING_API RectI { class
43 inline RectI() noexcept;
44 inline RectI(const RectI& r) noexcept;
45 inline RectI(const int32_t l, const int32_t t, const int32_t r, const int32_t b) noexcept;
47 ~RectI() {} in ~RectI()
66 * @brief Offsets RectI by adding dx to left, right; and by adding dy to top, bottom.
67 * If dx is negative, moves RectI returned to the left.
68 * If dx is positive, moves RectI returned to the right.
69 * If dy is negative, moves RectI returne
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_dirty_region_manager.cpp42 void RSDirtyRegionManager::MergeDirtyRect(const RectI& rect, bool isDebugRect) in MergeDirtyRect()
60 void RSDirtyRegionManager::MergeHwcDirtyRect(const RectI& rect) in MergeHwcDirtyRect()
72 bool RSDirtyRegionManager::MergeDirtyRectIfIntersect(const RectI& rect) in MergeDirtyRectIfIntersect()
84 void RSDirtyRegionManager::MergeDirtyRectAfterMergeHistory(const RectI& rect) in MergeDirtyRectAfterMergeHistory()
96 void RSDirtyRegionManager::UpdateVisitedDirtyRects(const std::vector<RectI>& rects) in UpdateVisitedDirtyRects()
105 RectI RSDirtyRegionManager::GetIntersectedVisitedDirtyRect(const RectI& absRect) const in GetIntersectedVisitedDirtyRect()
107 RectI belowDirty = currentFrameDirtyRegion_; in GetIntersectedVisitedDirtyRect()
117 void RSDirtyRegionManager::UpdateCacheableFilterRect(const RectI& rect) in UpdateCacheableFilterRect()
125 bool RSDirtyRegionManager::IfCacheableFilterRectFullyCover(const RectI
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/
H A Drs_filter_cache_manager.h58 const RectI& GetCachedImageRegion() const;
65 bool shouldClearFilteredCache, const std::optional<Drawing::RectI>& srcRect = std::nullopt,
66 const std::optional<Drawing::RectI>& dstRect = std::nullopt);
71 const std::shared_ptr<RSDrawingFilter>& filter, const std::optional<Drawing::RectI>& srcRect = std::nullopt,
72 const std::optional<Drawing::RectI>& dstRect = std::nullopt);
102 const Drawing::RectI& srcRect);
104 RSPaintFilterCanvas& canvas, const std::shared_ptr<RSDrawingFilter>& filter, const Drawing::RectI& dstRect);
106 const Drawing::RectI& src, const Drawing::RectI& dst, bool shouldClearFilteredCache);
107 void DrawCachedFilteredSnapshot(RSPaintFilterCanvas& canvas, const Drawing::RectI
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/
H A Drect_test.cpp470 std::unique_ptr<RectI> rectI = std::make_unique<RectI>(); in HWTEST_F()
486 RectI recti1; in HWTEST_F()
488 RectI recti2(recti1); in HWTEST_F()
501 RectI recti1; in HWTEST_F()
503 RectI recti2(recti1); in HWTEST_F()
516 std::unique_ptr<RectI> rectI = std::make_unique<RectI>(1.0f, 2.0f, 3.0f, 4.0f); in HWTEST_F()
532 std::unique_ptr<RectI> rectI = std::make_unique<RectI>(4. in HWTEST_F()
[all...]
H A Dregion_test.cpp61 RectI rectI; in HWTEST_F()
75 RectI rectI(0, 0, 256, 256); in HWTEST_F()
134 RectI rectI(0, 0, 256, 256); in HWTEST_F()
165 RectI rectI(0, 0, 256, 256); in HWTEST_F()
166 RectI otherRectI(0, 400, 500, 600); in HWTEST_F()
183 RectI rectI(0, 0, 256, 256); in HWTEST_F()
184 RectI otherRectI(0, 0, 256, 256); in HWTEST_F()
201 RectI rectI(0, 0, 256, 256); in HWTEST_F()
202 RectI otherRectI(0, 400, 500, 600); in HWTEST_F()
219 RectI rect in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rssurfaceohos_fuzzer/
H A Drssurfaceohos_fuzzer.cpp76 RectI r1 = RectI(GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>()); in RSSurfaceOhosFuzzTest()
77 RectI r2 = RectI(GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>()); in RSSurfaceOhosFuzzTest()
78 RectI r3 = RectI(GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>()); in RSSurfaceOhosFuzzTest()
79 RectI r4 = RectI(GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>()); in RSSurfaceOhosFuzzTest()
80 std::vector<RectI> rects; in RSSurfaceOhosFuzzTest()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
H A Drs_obj_abs_geometry.h43 const RectI& GetAbsRect() const in GetAbsRect()
47 RectI MapAbsRectWithMatrix(const RectF& rect, const Drawing::Matrix& matrix) const;
48 RectI MapAbsRect(const RectF& rect) const;
49 static RectI MapRect(const RectF& rect, const Drawing::Matrix& matrix);
70 RectI absRect_;
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_filter_cache_manager.cpp96 [&cachedImageRect](const RectI& rect) { return rect.Intersect(cachedImageRect); })) { in UpdateCacheStateWithDirtyRegion()
119 bool RSFilterCacheManager::CanDiscardCanvas(RSPaintFilterCanvas& canvas, const Drawing::RectI& dstRect) const in CanDiscardCanvas()
128 const std::shared_ptr<RSDrawingFilter>& filter, const Drawing::RectI& src, const Drawing::RectI& dst, in DrawFilterWithoutSnapshot()
155 bool shouldClearFilteredCache, const std::optional<Drawing::RectI>& srcRect, in DrawFilter()
156 const std::optional<Drawing::RectI>& dstRect) in DrawFilter()
183 const std::optional<Drawing::RectI>& srcRect, const std::optional<Drawing::RectI>& dstRect) in GeneratedCachedEffectData()
207 const Drawing::RectI& srcRect) in TakeSnapshot()
216 Drawing::RectI snapshotIBound in TakeSnapshot()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/backend/
H A Drs_surface_frame_ohos_vulkan.cpp38 std::vector<Drawing::RectI> rects; in SetDamageRegion()
39 Drawing::RectI rect = {left, top, left + width, top + height}; in SetDamageRegion()
45 void RSSurfaceFrameOhosVulkan::SetDamageRegion(const std::vector<RectI>& rects) in SetDamageRegion()
52 std::vector<Drawing::RectI> iRects; in SetDamageRegion()
54 Drawing::RectI iRect = {rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom()}; in SetDamageRegion()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_visitor.h144 bool IsNodeAboveInsideOfNodeBelow(const RectI& rectAbove, std::list<RectI>& hwcNodeRectList);
201 RSDirtyRegionManager& dirtyManager, const RectI& globalFilterRect);
202 RectI GetVisibleEffectDirty(RSRenderNode& node) const;
205 void UpdateHwcNodeEnableByGlobalCleanFilter(const std::vector<std::pair<NodeId, RectI>>& cleanFilter,
208 std::shared_ptr<RSSurfaceRenderNode>& node, const RectI& filterRect, bool isReverseOrder = false);
210 std::shared_ptr<RSSurfaceRenderNode>& node, const RectI& filterRect, bool isReverseOrder = false);
222 const Drawing::Matrix& absMatrix, const RectI& clipRect);
223 void UpdateDstRect(RSSurfaceRenderNode& node, const RectI& absRect, const RectI
[all...]
H A Drs_uni_render_util.h50 const RectI& globalDirtyRegion);
62 static std::vector<RectI> ScreenIntersectDirtyRects(const Occlusion::Region &region, ScreenInfo& screenInfo);
63 static std::vector<RectI> GetFilpDirtyRects(const std::vector<RectI>& srcRects, const ScreenInfo& screenInfo);
64 static std::vector<RectI> FilpRects(const std::vector<RectI>& srcRects, const ScreenInfo& screenInfo);
86 static void DrawRectForDfx(RSPaintFilterCanvas& canvas, const RectI& rect, Drawing::Color color,
112 static void UpdateRealSrcRect(RSSurfaceRenderNode& node, const RectI& absRect);
125 static SecRectInfo GenerateSecRectInfoFromNode(RSRenderNode& node, RectI rect);
155 static RectI SrcRectRotateTransfor
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/
H A Drs_filter_cache_manager_test.cpp166 Drawing::RectI src; in HWTEST_F()
167 Drawing::RectI dst; in HWTEST_F()
186 std::optional<Drawing::RectI> srcRect(Drawing::RectI { 0, 0, 100, 100 }); in HWTEST_F()
187 std::optional<Drawing::RectI> dstRect(Drawing::RectI { 0, 0, 100, 100 }); in HWTEST_F()
206 std::optional<Drawing::RectI> srcRect(Drawing::RectI { 0, 0, 100, 100 }); in HWTEST_F()
207 std::optional<Drawing::RectI> dstRect(Drawing::RectI { in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/dfx/
H A Drs_dirty_rects_dfx.h51 void SetVirtualDirtyRects(const std::vector<RectI>& virtualDirtyRects, const ScreenInfo& screenInfo) in SetVirtualDirtyRects()
59 std::vector<RectI> virtualDirtyRects_;
67 void DrawDirtyRectForDFX(RectI dirtyRect, const Drawing::Color color, const RSPaintStyle fillType,
73 void DrawDirtyRegionForDFX(const std::vector<RectI>& dirtyRects) const;
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/rect_fuzzer/
H A Drect_fuzzer.cpp37 RectI rect; in RectFuzzTest000()
67 RectI rect1 = RectI(l, t, r, b); in RectFuzzTest001()
68 RectI rect2 = RectI(rect1); in RectFuzzTest001()
93 RectI recti; in RectFuzzTest002()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/magic_pointer_render/
H A Drs_magic_pointer_render_manager.h57 void CalculateColorRange(RectI& pRect);
63 std::shared_ptr<Drawing::Image> GetIntersectImageFromVK(Drawing::RectI& imgCutRect,
67 std::shared_ptr<Drawing::Image> GetIntersectImageFromGL(Drawing::RectI& imgCutRect,
71 void GetRectAndTargetLayer(std::vector<LayerInfoPtr>& layers, RectI& pRect, int displayNodeIndex);
76 RectI rect_;
H A Drs_magic_pointer_render_manager.cpp192 RectI pointerRect = surfaceDrawable->GetRenderParams()->GetAbsDrawRect();
194 Drawing::RectI drawingPointerRect = Drawing::RectI(pointerRect.GetLeft(), pointerRect.GetTop(),
221 RectI pRect;
248 void RSMagicPointerRenderManager::CalculateColorRange(RectI& pRect)
257 void RSMagicPointerRenderManager::GetRectAndTargetLayer(std::vector<LayerInfoPtr>& layers, RectI& pRect,
268 RectI curRect = RectI(layerSize.x, layerSize.y, layerSize.w, layerSize.h);
272 RectI dstRect = curRect.IntersectRect(pRect);
283 RectI curRec
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/
H A Drs_rect_test.cpp48 RectI rect; in HWTEST_F()
49 auto p1 = std::pair<NodeId, RectI>(id, rect); in HWTEST_F()
51 auto p2 = std::pair<NodeId, RectI>(id, rect); in HWTEST_F()
65 RectI rect; in HWTEST_F()
66 auto p1 = std::pair<NodeId, RectI>(id, rect); in HWTEST_F()
68 auto p2 = std::pair<NodeId, RectI>(id, rect.MakeOutset(1)); in HWTEST_F()
82 RectI rect; in HWTEST_F()
83 auto p1 = std::pair<NodeId, RectI>(id, rect); in HWTEST_F()
84 auto p2 = std::pair<NodeId, RectI>(id, rect.MakeOutset(1)); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/params/
H A Drs_surface_render_params.h120 const RectI& GetAbsDrawRect() const override
260 void SetUifirstChildrenDirtyRectParam(const RectI& rect) in SetUifirstChildrenDirtyRectParam()
266 RectI& GetUifirstChildrenDirtyRectParam() in GetUifirstChildrenDirtyRectParam()
270 const RectI& GetDstRect() const in GetDstRect()
311 void SetOldDirtyInSurface(const RectI& oldDirtyInSurface) override;
312 RectI GetOldDirtyInSurface() const override;
329 bool isFilterCacheValidForOcclusion, const RectI& filterCachedRect, const RectI& targetRect);
529 RectI dstRect_;
530 RectI oldDirtyInSurface
[all...]

Completed in 21 milliseconds

123456789