Home
last modified time | relevance | path

Searched refs:RectI (Results 1 – 25 of 195) sorted by relevance

12345678

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/
H A Drs_dirty_region_manager.h75 RectI GetIntersectedVisitedDirtyRect(const RectI& absRect) const;
96 const RectI& GetDirtyRegion() const;
107 RectI GetRectFlipWithinSurface(const RectI& rect) const;
109 static RectI GetPixelAlignedRect(const RectI& rect, int32_t alignedBits = ALIGNED_BITS);
120 RectI GetSurfaceRect() const in GetSurfaceRect()
142 … DirtyRegionType dirtyType = DirtyRegionType::UPDATE_DIRTY_REGION, const RectI& rect = RectI());
175 RectI GetHwcDirtyRegion() const in GetHwcDirtyRegion()
181 RectI MergeHistory(unsigned int age, RectI rect) const;
182 void PushHistory(RectI rect);
192 RectI mergedDirtyInVirtualScreen_;
[all …]
H A Drs_render_node.h532 const RSRenderNode& subTreeRoot, RectI& filterRect, const RectI& clipRect);
865 RectI filterRegion_;
914 RectI childrenRect_;
915 RectI oldChildrenRect_;
916 RectI oldClipRect_;
921 RectI absChildrenRect_;
934 bool UpdateBufferDirtyRegion(RectI& dirtyRect, const RectI& drawRegion);
959 RectI oldDirty_;
1055 RectI oldAbsDrawRect_;
1060 RectI localShadowRect_;
[all …]
H A Drs_surface_render_node.h535 const RectI& GetSrcRect() const in GetSrcRect()
548 const RectI& GetDstRect() const in GetDstRect()
862 void ResetSurfaceContainerRegion(const RectI& screeninfo, const RectI& absRect,
1323 RectI srcRect_;
1357 RectI clipRegionFromParent_;
1376 RectI dstRect_;
1419 RectI screenRect_;
1420 RectI absRect_;
1421 RectI oldDirty_;
1473 RectI originalDstRect_;
[all …]
H A Drs_display_render_node.h200 void UpdateSurfaceNodePos(NodeId id, RectI rect) in UpdateSurfaceNodePos()
205 void AddSurfaceNodePosByDescZOrder(NodeId id, RectI rect) in AddSurfaceNodePosByDescZOrder()
235 RectI GetLastFrameSurfacePos(NodeId id) in GetLastFrameSurfacePos()
243 RectI GetCurrentFrameSurfacePos(NodeId id) in GetCurrentFrameSurfacePos()
251 const std::vector<RectI> GetSurfaceChangedRects() const in GetSurfaceChangedRects()
253 std::vector<RectI> rects; in GetSurfaceChangedRects()
402 std::map<NodeId, RectI> lastFrameSurfacePos_;
403 std::map<NodeId, RectI> currentFrameSurfacePos_;
404 std::vector<std::pair<NodeId, RectI>> lastFrameSurfacesByDescZOrder_;
405 std::vector<std::pair<NodeId, RectI>> currentFrameSurfacesByDescZOrder_;
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;
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/
H A Drs_dirty_region_manager_test.cpp39 static inline RectI defaultRect = RectI();
62 RectI rect = RectI(0, 0, 10, 10);
135 RectI joinedRect = RectI();
163 RectI joinedRect = RectI();
207 RectI curDirtyRect = RectI();
239 RectI joinedRect = RectI();
240 RectI curDirtyRect = RectI();
312 RectI oriRect = RectI(31, 31, 32, 65);
335 RectI oriRect = RectI(31, 31, 32, 65);
374 RectI rect = RectI(1, 2, 3, 4);
[all …]
H A Drs_render_node_test2.cpp367 RectI clipRect{0, 0, 1000, 1000};
382 RectI clipRect{0, 0, 1000, 1000};
400 RectI clipRect{0, 0, 1000, 1000};
420 RectI clipRect{0, 0, 1000, 1000};
440 RectI clipRect{0, 0, 1000, 1000};
456 RectI clipRect{0, 0, 1000, 1000};
480 RectI clipRect{0, 0, 1000, 1000};
1032 RectI inRegion(10, 10, 20, 20);
1248 RectI clipRectTest1 = RectI { 0, 0, 1, 1 };
1255 RectI clipRectTest2 = RectI { 0, 0, 1, 1 };
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Drect.h41 class DRAWING_API RectI {
44 inline RectI(const RectI& r) noexcept;
47 ~RectI() {} in ~RectI()
112 friend inline bool operator==(const RectI& r1, const RectI& r2);
113 friend inline bool operator!=(const RectI& r1, const RectI& r2);
123 inline RectI::RectI(const RectI& r) noexcept in RectI() function
214 inline bool RectI::Intersect(const RectI& other) in Intersect()
225 inline bool RectI::Join(const RectI& other) in Join()
239 inline bool RectI::Contains(const RectI& other) const in Contains()
252 inline bool operator==(const RectI& r1, const RectI& r2)
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/
H A Drect_test.cpp470 std::unique_ptr<RectI> rectI = std::make_unique<RectI>();
486 RectI recti1;
501 RectI recti1;
574 std::unique_ptr<RectI> rectI = std::make_unique<RectI>();
588 std::unique_ptr<RectI> rectI = std::make_unique<RectI>();
602 std::unique_ptr<RectI> rectI = std::make_unique<RectI>();
616 std::unique_ptr<RectI> rectI = std::make_unique<RectI>();
630 std::unique_ptr<RectI> rectI = std::make_unique<RectI>();
644 std::unique_ptr<RectI> rectI = std::make_unique<RectI>();
658 std::unique_ptr<RectI> rectI = std::make_unique<RectI>();
[all …]
H A Dregion_test.cpp61 RectI rectI;
75 RectI rectI(0, 0, 256, 256);
134 RectI rectI(0, 0, 256, 256);
165 RectI rectI(0, 0, 256, 256);
166 RectI otherRectI(0, 400, 500, 600);
183 RectI rectI(0, 0, 256, 256);
184 RectI otherRectI(0, 0, 256, 256);
201 RectI rectI(0, 0, 256, 256);
219 RectI rectI(0, 0, 256, 256);
237 RectI rectI(0, 0, 256, 256);
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_dirty_region_manager.cpp105 RectI RSDirtyRegionManager::GetIntersectedVisitedDirtyRect(const RectI& absRect) const in GetIntersectedVisitedDirtyRect()
107 RectI belowDirty = currentFrameDirtyRegion_; in GetIntersectedVisitedDirtyRect()
147 …currentFrameDirtyRegion_ = ((width <= 0) || (height <= 0)) ? RectI() : RectI(left, top, width, hei… in ClipDirtyRectWithinSurface()
185 RectI glRect; in GetDirtyRegionFlipWithinSurface()
199 RectI RSDirtyRegionManager::GetRectFlipWithinSurface(const RectI& rect) const in GetRectFlipWithinSurface()
201 RectI glRect = rect; in GetRectFlipWithinSurface()
217 RectI RSDirtyRegionManager::GetPixelAlignedRect(const RectI& rect, int32_t alignedBits) in GetPixelAlignedRect()
219 RectI newRect = rect; in GetPixelAlignedRect()
276 DirtyRegionType dirtyType, const RectI& rect) in UpdateDirtyRegionInfoForDfx()
333 surfaceRect_ = RectI(0, 0, width, height); in SetSurfaceSize()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/
H A Drs_filter_cache_manager.h58 const RectI& GetCachedImageRegion() const;
70 …const DrawFilterParams params = { true, false }, const std::optional<Drawing::RectI>& srcRect = st…
71 const std::optional<Drawing::RectI>& dstRect = std::nullopt);
76 …const std::shared_ptr<RSDrawingFilter>& filter, const std::optional<Drawing::RectI>& srcRect = std…
77 const std::optional<Drawing::RectI>& dstRect = std::nullopt);
106 const Drawing::RectI& srcRect);
110 const Drawing::RectI& src, const Drawing::RectI& dst, bool shouldClearFilteredCache);
111 … void DrawCachedFilteredSnapshot(RSPaintFilterCanvas& canvas, const Drawing::RectI& dstRect) const;
113 std::tuple<Drawing::RectI, Drawing::RectI> ValidateParams(RSPaintFilterCanvas& canvas,
114 const std::optional<Drawing::RectI>& srcRect, const std::optional<Drawing::RectI>& dstRect);
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_filter_cache_manager.cpp120 …const std::shared_ptr<RSDrawingFilter>& filter, const Drawing::RectI& src, const Drawing::RectI& d… in DrawFilterWithoutSnapshot()
145 const DrawFilterParams params, const std::optional<Drawing::RectI>& srcRect, in DrawFilter()
146 const std::optional<Drawing::RectI>& dstRect) in DrawFilter()
173 const std::optional<Drawing::RectI>& srcRect, const std::optional<Drawing::RectI>& dstRect) in GeneratedCachedEffectData()
206 Drawing::RectI snapshotIBounds = srcRect; in TakeSnapshot()
376 const RectI& RSFilterCacheManager::GetCachedImageRegion() const in GetCachedImageRegion()
378 static const auto emptyRect = RectI(); in GetCachedImageRegion()
400 std::tuple<Drawing::RectI, Drawing::RectI> RSFilterCacheManager::ValidateParams( in ValidateParams()
402 const std::optional<Drawing::RectI>& dstRect) in ValidateParams()
404 Drawing::RectI src; in ValidateParams()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_visitor.h139 bool IsNodeAboveInsideOfNodeBelow(const RectI& rectAbove, std::list<RectI>& hwcNodeRectList);
189 RSDirtyRegionManager& dirtyManager, const RectI& globalFilterRect);
190 RectI GetVisibleEffectDirty(RSRenderNode& node) const;
210 const Drawing::Matrix& absMatrix, const RectI& clipRect);
211 void UpdateDstRect(RSSurfaceRenderNode& node, const RectI& absRect, const RectI& clipRect);
220 void UpdateChildHwcNodeEnableByHwcNodeBelow(std::vector<RectI>& hwcRects,
222 void UpdateHwcNodeEnableByHwcNodeBelowSelf(std::vector<RectI>& hwcRects,
230 … const Vector4f& instanceCornerRadius, const RectI& instanceAbsRect, const RectI& hwcAbsRect);
309 RectI screenRect_;
431 std::vector<RectI> globalFilterRects_;
[all …]
H A Drs_uni_render_util.h62 …static std::vector<RectI> ScreenIntersectDirtyRects(const Occlusion::Region &region, ScreenInfo& s…
63 …static std::vector<RectI> GetFilpDirtyRects(const std::vector<RectI>& srcRects, const ScreenInfo& …
64 …static std::vector<RectI> FilpRects(const std::vector<RectI>& srcRects, const ScreenInfo& screenIn…
85 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);
154 …static RectI SrcRectRotateTransform(RSSurfaceRenderNode& node, GraphicTransformType transformType);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rssurfaceohos_fuzzer/
H A Drssurfaceohos_fuzzer.cpp76RectI r1 = RectI(GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>()); in RSSurfaceOhosFuzzTest()
77RectI r2 = RectI(GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>()); in RSSurfaceOhosFuzzTest()
78RectI r3 = RectI(GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>()); in RSSurfaceOhosFuzzTest()
79RectI r4 = RectI(GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>()); in RSSurfaceOhosFuzzTest()
80 std::vector<RectI> rects; in RSSurfaceOhosFuzzTest()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/
H A Drs_filter_cache_manager_test.cpp165 Drawing::RectI src;
166 Drawing::RectI dst;
187 std::optional<Drawing::RectI> srcRect(Drawing::RectI { 0, 0, 100, 100 });
188 std::optional<Drawing::RectI> dstRect(Drawing::RectI { 0, 0, 100, 100 });
207 std::optional<Drawing::RectI> srcRect(Drawing::RectI { 0, 0, 100, 100 });
208 std::optional<Drawing::RectI> dstRect(Drawing::RectI { 0, 0, 100, 100 });
227 Drawing::RectI srcRect(0, 0, 100, 100);
248 Drawing::RectI dstRect;
281 Drawing::RectI dstRect;
398 std::optional<Drawing::RectI> srcRect;
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/
H A Drs_uni_render_composer_adapter_test.cpp101 RectI dstRect{0, 0, 400, 600};
171 RectI dstRect{0, 0, 400, 600};
198 RectI dstRect{0, 0, DEFAULT_CANVAS_WIDTH, DEFAULT_CANVAS_HEIGHT};
222 RectI dstRect{0, 0, DEFAULT_CANVAS_WIDTH, DEFAULT_CANVAS_HEIGHT};
475 RectI dstRect{0, 0, 400, 600};
769 RectI dstRect{0, 0, 400, 600};
851 RectI dstRect{0, 0, 400, 600};
1131 RectI rect{0, 0, DEFAULT_CANVAS_WIDTH, DEFAULT_CANVAS_HEIGHT};
1157 RectI rect{0, 0, DEFAULT_CANVAS_WIDTH, DEFAULT_CANVAS_HEIGHT};
1192 RectI rect{0, 0, DEFAULT_CANVAS_WIDTH, DEFAULT_CANVAS_HEIGHT};
[all …]
/ohos5.0/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()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/pointer_render/
H A Drs_pointer_render_manager.cpp192 RectI pointerRect = surfaceDrawable->GetRenderParams()->GetAbsDrawRect(); in GetIntersectImageBySubset()
194 … Drawing::RectI drawingPointerRect = Drawing::RectI(pointerRect.GetLeft(), pointerRect.GetTop(), in GetIntersectImageBySubset()
221 RectI pRect; in CalculateTargetLayer()
248 void RSPointerRenderManager::CalculateColorRange(RectI& pRect) in CalculateColorRange()
257 void RSPointerRenderManager::GetRectAndTargetLayer(std::vector<LayerInfoPtr>& layers, RectI& pRect, in GetRectAndTargetLayer()
268 RectI curRect = RectI(layerSize.x, layerSize.y, layerSize.w, layerSize.h); in GetRectAndTargetLayer()
272 RectI dstRect = curRect.IntersectRect(pRect); in GetRectAndTargetLayer()
284 RectI curRect = RectI(layerSize.x, layerSize.y, layerSize.w, layerSize.h); in GetRectAndTargetLayer()
285 RectI dstRect = curRect.IntersectRect(pRect); in GetRectAndTargetLayer()
364 …Drawing::RectI imgCutRect = Drawing::RectI(rect_.GetLeft(), rect_.GetTop(), rect_.GetRight(), rect… in GetIntersectImageByLayer()
[all …]
H A Drs_pointer_render_manager.h61 void CalculateColorRange(RectI& pRect);
67 std::shared_ptr<Drawing::Image> GetIntersectImageFromVK(Drawing::RectI& imgCutRect,
71 std::shared_ptr<Drawing::Image> GetIntersectImageFromGL(Drawing::RectI& imgCutRect,
75 … void GetRectAndTargetLayer(std::vector<LayerInfoPtr>& layers, RectI& pRect, int displayNodeIndex);
80 RectI rect_;
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/
H A Drs_rect_test.cpp48 RectI rect;
49 auto p1 = std::pair<NodeId, RectI>(id, rect);
51 auto p2 = std::pair<NodeId, RectI>(id, rect);
65 RectI rect;
66 auto p1 = std::pair<NodeId, RectI>(id, rect);
68 auto p2 = std::pair<NodeId, RectI>(id, rect.MakeOutset(1));
82 RectI rect;
83 auto p1 = std::pair<NodeId, RectI>(id, rect);
84 auto p2 = std::pair<NodeId, RectI>(id, rect.MakeOutset(1));
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/params/
H A Drs_surface_render_params.h133 const RectI& GetAbsDrawRect() const override in GetAbsDrawRect()
257 void SetUifirstChildrenDirtyRectParam(const RectI& rect) in SetUifirstChildrenDirtyRectParam()
263 RectI& GetUifirstChildrenDirtyRectParam() in GetUifirstChildrenDirtyRectParam()
267 const RectI& GetDstRect() const in GetDstRect()
308 void SetOldDirtyInSurface(const RectI& oldDirtyInSurface) override;
309 RectI GetOldDirtyInSurface() const override;
326 … bool isFilterCacheValidForOcclusion, const RectI& filterCachedRect, const RectI& targetRect);
545 RectI dstRect_;
546 RectI oldDirtyInSurface_;
547 RectI childrenDirtyRect_;
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
H A Drs_obj_abs_geometry.h43 const RectI& GetAbsRect() const in GetAbsRect()
48 RectI MapAbsRect(const RectF& rect) const;
49 static RectI MapRect(const RectF& rect, const Drawing::Matrix& matrix);
70 RectI absRect_;
/ohos5.0/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()

12345678