/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/ |
H A D | rs_effect_render_node_drawable.cpp | 54 const Drawing::Rect& bounds = effectParams->GetFrameRect(); in OnDraw() local 56 if (!GenerateEffectDataOnDemand(effectParams, canvas, bounds, paintFilterCanvas)) { in OnDraw() 60 RSRenderNodeDrawableAdapter::DrawImpl(canvas, bounds, drawCmdIndex_.childrenIndex_); in OnDraw() 64 Drawing::Canvas& canvas, const Drawing::Rect& bounds, RSPaintFilterCanvas* paintFilterCanvas) in GenerateEffectDataOnDemand() 76 canvas.ClipIRect(Drawing::RectI(0, 0, bounds.GetWidth(), bounds.GetHeight())); in GenerateEffectDataOnDemand() 77 RSRenderNodeDrawableAdapter::DrawImpl(canvas, bounds, drawCmdIndex_.backgroundFilterIndex_); in GenerateEffectDataOnDemand() 81 canvas.ClipIRect(Drawing::RectI(0, 0, bounds.GetWidth(), bounds.GetHeight())); in GenerateEffectDataOnDemand() 87 // extract clip bounds in GenerateEffectDataOnDemand() 63 GenerateEffectDataOnDemand(RSEffectRenderParams* effectParams, Drawing::Canvas& canvas, const Drawing::Rect& bounds, RSPaintFilterCanvas* paintFilterCanvas) GenerateEffectDataOnDemand() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
H A D | rosen_render_svg_line.cpp | 108 auto& bounds = path.getBounds(); in GetPaintBounds() local 109 return Rect(bounds.left(), bounds.top(), bounds.width(), bounds.height()); in GetPaintBounds() 113 auto bounds = path.GetBounds(); in GetPaintBounds() 114 return Rect(bounds.GetLeft(), bounds.GetTop(), bounds.GetWidth(), bounds in GetPaintBounds() [all...] |
H A D | rosen_render_svg_ellipse.cpp | 109 auto& bounds = path.getBounds(); in GetPaintBounds() local 110 return Rect(bounds.left(), bounds.top(), bounds.width(), bounds.height()); in GetPaintBounds() 114 auto bounds = path.GetBounds(); in GetPaintBounds() 115 return Rect(bounds.GetLeft(), bounds.GetTop(), bounds.GetWidth(), bounds in GetPaintBounds() [all...] |
H A D | rosen_render_svg_circle.cpp | 119 auto& bounds = path.getBounds(); in GetPaintBounds() local 120 return Rect(bounds.left(), bounds.top(), bounds.width(), bounds.height()); in GetPaintBounds() 125 auto bounds = path.GetBounds(); in GetPaintBounds() 126 return Rect(bounds.GetLeft(), bounds.GetTop(), bounds.GetWidth(), bounds in GetPaintBounds() [all...] |
H A D | rosen_render_svg_rect.cpp | 109 auto& bounds = path.getBounds(); in GetPaintBounds() local 110 return Rect(bounds.left(), bounds.top(), bounds.width(), bounds.height()); in GetPaintBounds() 114 auto bounds = path.GetBounds(); in GetPaintBounds() 115 return Rect(bounds.GetLeft(), bounds.GetTop(), bounds.GetWidth(), bounds in GetPaintBounds() [all...] |
H A D | rosen_render_svg_text_path.cpp | 44 Offset RosenRenderSvgTextPath::MeasureTextPathBounds(const Offset& offset, Rect& bounds) in MeasureTextPathBounds() argument 52 pathOffset.current = OnMeasureTextPathBounds(pathOffset, bounds); in MeasureTextPathBounds() 59 textSpan->MeasureTextPathBounds(pathOffset, bounds); in MeasureTextPathBounds() 70 Rect bounds; in GetPaintBounds() local 71 MeasureTextPathBounds(Offset(), bounds); in GetPaintBounds() local 72 return bounds; in GetPaintBounds() 125 double RosenRenderSvgTextPath::OnMeasureTextPathBounds(const PathOffset& pathOffset, Rect& bounds) in OnMeasureTextPathBounds() argument 129 double offset = RosenSvgPainter::MeasureTextPathBounds(svgTextInfo, pathDrawInfo, bounds); in OnMeasureTextPathBounds()
|
H A D | rosen_render_svg_text.cpp | 69 Rect bounds; in GetPaintBounds() local 70 MeasureTextBounds(drawOffset, bounds); in GetPaintBounds() 71 return bounds; in GetPaintBounds() 74 void RosenRenderSvgText::MeasureTextBounds(DrawOffset& drawOffset, Rect& bounds) in MeasureTextBounds() argument 78 drawOffset.current = OnMeasureTextBounds(drawOffset, bounds); in MeasureTextBounds() 87 textSpan->MeasureTextBounds(drawOffset, bounds); in MeasureTextBounds() 93 drawOffset.current = textPath->MeasureTextPathBounds(drawOffset.svg, bounds); in MeasureTextBounds() 157 Offset RosenRenderSvgText::OnMeasureTextBounds(const DrawOffset& drawOffset, Rect& bounds) in OnMeasureTextBounds() argument 163 offset = RosenSvgPainter::MeasureTextBounds(svgTextInfo, textDrawInfo, bounds); in OnMeasureTextBounds()
|
H A D | rosen_render_svg_path.cpp | 113 auto& bounds = path.getBounds(); in GetPaintBounds() local 114 return Rect(bounds.left(), bounds.top(), bounds.width(), bounds.height()); in GetPaintBounds() 118 auto bounds = recordingPath.GetBounds(); in GetPaintBounds() 119 return Rect(bounds.GetLeft(), bounds.GetTop(), bounds.GetWidth(), bounds in GetPaintBounds() [all...] |
H A D | rosen_render_svg_polygon.cpp | 205 auto& bounds = path.getBounds(); in GetPaintBounds() local 206 return Rect(bounds.left(), bounds.top(), bounds.width(), bounds.height()); in GetPaintBounds() 212 auto bounds = path.GetBounds(); in GetPaintBounds() 213 return Rect(bounds.GetLeft(), bounds.GetTop(), bounds.GetWidth(), bounds in GetPaintBounds() [all...] |
H A D | rosen_render_svg_tspan.cpp | 105 void RosenRenderSvgTspan::MeasureTextPathBounds(PathOffset& pathOffset, Rect& bounds) in MeasureTextPathBounds() argument 116 pathOffset.current = OnMeasureTextPathBounds(pathOffset, bounds); in MeasureTextPathBounds() 124 textSpan->MeasureTextPathBounds(pathOffset, bounds); in MeasureTextPathBounds() 145 double RosenRenderSvgTspan::OnMeasureTextPathBounds(const PathOffset& pathOffset, Rect& bounds) in OnMeasureTextPathBounds() argument 149 double offset = RosenSvgPainter::MeasureTextPathBounds(svgTextInfo, pathDrawInfo, bounds); in OnMeasureTextPathBounds()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_graphic.cpp | 59 auto bounds = AsPath(layout).GetBounds(); in OnDraw() local 60 Rect rect = Rect { bounds.GetLeft(), bounds.GetTop(), bounds.GetWidth(), bounds.GetHeight() }; in OnDraw() 83 auto bounds = AsBounds(viewPort); in SetLinearGradient() local 84 auto width = bounds.Width(); in SetLinearGradient() 85 auto height = bounds.Height(); in SetLinearGradient() 92 RectifyTargetSize(bounds, width, height); in SetLinearGradient() 97 gradientInfo.x1 += bounds in SetLinearGradient() 117 auto bounds = AsBounds(viewPort); SetRadialGradient() local 226 auto bounds = path_.GetBounds(); SetGradientFillStyle() local 435 RectifyTargetSize(const Rect& bounds, double& width, double& height) RectifyTargetSize() argument [all...] |
H A D | svg_node.h | 99 auto bounds = AsPath(viewPort).getBounds(); in AsBounds() local 100 return { bounds.left(), bounds.top(), bounds.width(), bounds.height() }; in AsBounds() 102 auto bounds = AsPath(viewPort).GetBounds(); in AsBounds() 103 return { bounds.GetLeft(), bounds.GetTop(), bounds.GetWidth(), bounds in AsBounds() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | clipped_cubic.cpp | 40 OH_Drawing_Rect *bounds = OH_Drawing_RectCreate(float(0), float(0), float(170), float(150)); // 170 150 坐标 in OnTestFunction() local 49 OH_Drawing_CanvasClipRect(canvas, bounds, INTERSECT, false); in OnTestFunction() 53 OH_Drawing_CanvasTranslate(canvas, OH_Drawing_RectGetWidth(bounds), 0); in OnTestFunction() 56 OH_Drawing_CanvasTranslate(canvas, 0, OH_Drawing_RectGetHeight(bounds)); in OnTestFunction() 61 OH_Drawing_RectDestroy(bounds); in OnTestFunction()
|
H A D | luma_filter.cpp | 113 void draw_scene_oval(OH_Drawing_Canvas* canvas, OH_Drawing_Brush* brush, DrawRect bounds, OH_Drawing_ShaderEffect* s1) in draw_scene_oval() argument 115 DrawRect r = bounds; in draw_scene_oval() 124 r = bounds; in draw_scene_oval() 125 r.Inset(g_kInset, 0); // 0 bounds in draw_scene_oval() 139 DrawRect bounds = { 0, 0, g_kSize, g_kSize }; // 0, 0 bounds in draw_scene() local 140 DrawRect r = bounds; in draw_scene() 141 DrawRect c = bounds; in draw_scene() 142 c.right = bounds.CenterX(); in draw_scene() 145 draw_scene_oval(canvas, brush, bounds, s in draw_scene() [all...] |
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | screen_property_test.cpp | 65 RRect bounds; in HWTEST_F() local 66 bounds.rect_.width_ = 1344; in HWTEST_F() 67 bounds.rect_.height_ = 2772; in HWTEST_F() 69 property->UpdateVirtualPixelRatio(bounds); in HWTEST_F() 71 bounds.rect_.height_ = 1111; in HWTEST_F() 72 property->UpdateVirtualPixelRatio(bounds); in HWTEST_F() 74 bounds.rect_.width_ = 1111; in HWTEST_F() 75 bounds.rect_.height_ = 2772; in HWTEST_F() 76 property->UpdateVirtualPixelRatio(bounds); in HWTEST_F() 78 bounds in HWTEST_F() 95 RRect bounds; HWTEST_F() local 269 RRect bounds = property->GetBounds(); HWTEST_F() local 415 RRect bounds; HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/ |
H A D | rs_texture_export.cpp | 53 auto bounds = rootNode_->GetStagingProperties().GetBounds(); in DoTextureExport() local 54 virtualRootNode_->SetBounds({-bounds.x_, -bounds.y_, bounds.z_, bounds.w_}); in DoTextureExport()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_canvas_autocache.cpp | 265 bool SkiaCanvasAutoCache::RecordDrawArea(const SkRect& bounds, const SkPaint& paint, const SkMatrix* matrix)
in RecordDrawArea() argument 267 if (!bounds.isFinite() || paint.nothingToDraw()) {
in RecordDrawArea() 272 SkRect oriBound = matrix ? matrix->mapRect(bounds) : bounds;
in RecordDrawArea() 323 SkRect bounds;
in onDrawPoints() local 325 bounds.set(pts[0], pts[1]);
in onDrawPoints() 327 bounds.setBounds(pts, SkToInt(count));
in onDrawPoints() 331 if (!RecordDrawArea(bounds, strokePaint)) {
in onDrawPoints() 351 const SkRect& bounds = rrect.getBounds();
in onDrawRRect() local 352 if (!RecordDrawArea(bounds, pain in onDrawRRect() 373 const SkRect bounds = SkRect::Make(region.getBounds()); onDrawRegion() local 423 SkRect bounds = SkRect::MakeXYWH(left, top, image->width(), image->height()); onDrawImage2() local 476 SkRect bounds; onDrawPatch() local 514 SkRect bounds = list.sourceBounds(); onDrawGlyphRunList() local [all...] |
H A D | skia_text_blob_builder.cpp | 36 const TextBlobBuilder::RunBuffer& SkiaTextBlobBuilder::AllocRunPos(const Font& font, int count, const Rect* bounds) in AllocRunPos() argument 43 if (!bounds) { in AllocRunPos() 50 SkiaConvertUtils::DrawingRectCastToSkRect(*bounds, skRect); in AllocRunPos()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_record_cmd_utils.cpp | 26 Drawing::Canvas* RSRecordCmdUtils::BeginRecording(Drawing::Rect& bounds) in BeginRecording() argument 28 Drawing::RectI rect = bounds.RoundOut(); in BeginRecording() 36 cullRect_ = bounds; in BeginRecording()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_draw_window_cache.cpp | 30 RSPaintFilterCanvas& canvas, const Drawing::Rect& bounds) in DrawAndCacheWindowContent() 43 auto windowSurface = mainSurface->MakeSurface(bounds.GetWidth(), bounds.GetHeight()); in DrawAndCacheWindowContent() 69 surfaceDrawable->DrawContent(*windowCanvas, bounds); // draw content in DrawAndCacheWindowContent() 70 surfaceDrawable->DrawChildren(*windowCanvas, bounds); // draw children in DrawAndCacheWindowContent() 29 DrawAndCacheWindowContent(DrawableV2::RSSurfaceRenderNodeDrawable* surfaceDrawable, RSPaintFilterCanvas& canvas, const Drawing::Rect& bounds) DrawAndCacheWindowContent() argument
|
/foundation/graphic/graphic_2d/graphic_test/graphic_test/rs_display_effect/property_display/ |
H A D | appearance_clip_test.cpp | 53 Vector4f bounds = { i * 410.0, j * 500.0, 400.0, 400.0 }; in GRAPHIC_TEST() local 58 testFaNode->SetBounds(bounds); in GRAPHIC_TEST() 59 testFaNode->SetFrame(bounds); in GRAPHIC_TEST() 97 Vector4f bounds = { i * 410.0, j * 500.0, 400.0, 400.0 }; in GRAPHIC_TEST() local 102 testFaNode->SetBounds(bounds); in GRAPHIC_TEST()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/ui/ |
H A D | rs_surface_node_test.cpp | 90 auto bounds = surfaceNode->GetStagingProperties().GetBounds();
in HWTEST_F() local 91 EXPECT_TRUE(ROSEN_EQ(bounds.x_, TestSrc::limitNumber::floatLimit[0]));
in HWTEST_F() 92 EXPECT_TRUE(ROSEN_EQ(bounds.y_, TestSrc::limitNumber::floatLimit[1]));
in HWTEST_F() 93 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSrc::limitNumber::floatLimit[2]));
in HWTEST_F() 94 EXPECT_TRUE(ROSEN_EQ(bounds.w_, TestSrc::limitNumber::floatLimit[3]));
in HWTEST_F() 108 auto bounds = surfaceNode->GetStagingProperties().GetBounds();
in HWTEST_F() local 109 EXPECT_TRUE(ROSEN_EQ(bounds.x_, TestSrc::limitNumber::floatLimit[3]));
in HWTEST_F() 110 EXPECT_TRUE(ROSEN_EQ(bounds.y_, TestSrc::limitNumber::floatLimit[1]));
in HWTEST_F() 111 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSrc::limitNumber::floatLimit[2]));
in HWTEST_F() 112 EXPECT_TRUE(ROSEN_EQ(bounds in HWTEST_F() 126 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 145 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 164 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 183 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 200 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 214 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 228 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 242 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 256 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 270 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 284 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 298 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 312 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local 326 auto bounds = surfaceNode->GetStagingProperties().GetBounds(); HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/ |
H A D | record_cmd.cpp | 24 RecordCmd::RecordCmd(const std::shared_ptr<DrawCmdList>& cmdList, const Rect& bounds) in RecordCmd() argument 25 : drawCmdList_(cmdList), cullRect_(bounds) { } in RecordCmd()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/ |
H A D | system_window_scene.cpp | 33 boundsChangedCallback_ = [weakThis = WeakClaim(this)](const Rosen::Vector4f& bounds) { in SystemWindowScene() 36 self->OnBoundsChanged(bounds); in SystemWindowScene() 45 void SystemWindowScene::OnBoundsChanged(const Rosen::Vector4f& bounds) in OnBoundsChanged() argument 48 .posX_ = std::round(bounds.x_), in OnBoundsChanged() 49 .posY_ = std::round(bounds.y_), in OnBoundsChanged() 50 .width_ = std::round(bounds.z_), in OnBoundsChanged() 51 .height_ = std::round(bounds.w_), in OnBoundsChanged() 56 .posX_ = bounds.x_, in OnBoundsChanged() 57 .posY_ = bounds.y_, in OnBoundsChanged() 58 .width_ = bounds in OnBoundsChanged() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/text/ |
H A D | text_blob_builder.cpp | 32 const Rect* bounds) in AllocRunPos() 34 return textBlobBuilderImpl_->AllocRunPos(font, count, bounds); in AllocRunPos() 31 AllocRunPos(const Font& font, int count, const Rect* bounds) AllocRunPos() argument
|