/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/ |
H A D | path.cpp | 23 Path::Path() noexcept : impl_(ImplFactory::CreatePathImpl()) {} in CreatePathImpl() 25 Path::Path(const Path& other) noexcept 30 Path& Path::operator=(const Path &other) noexcept 36 Path::~Path() {} in ~Path() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/ |
H A D | path_test.cpp | 48 auto path = std::make_unique<Path>(); in HWTEST_F() 54 * @tc.desc: Test for Parsing the SVG format string and sets the Path. 60 auto path = std::make_unique<Path>(); in HWTEST_F() 68 * @tc.desc: Test for Parsing the SVG format string and sets the Path. 74 auto path = std::make_unique<Path>(); in HWTEST_F() 82 * @tc.desc: Test for Parsing the SVG format string and sets the Path. 88 auto path = std::make_unique<Path>(); in HWTEST_F() 96 * @tc.desc: Test for Parsing into a string in SVG format that describes the Path. 102 auto path = std::make_unique<Path>(); in HWTEST_F() 109 * @tc.desc: Test for Parsing into a string in SVG format that describes the Path [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_path.cpp | 26 static Path* CastToPath(OH_Drawing_Path* cPath) in CastToPath() 28 return reinterpret_cast<Path*>(cPath); in CastToPath() 68 return (OH_Drawing_Path*)new Path; in OH_Drawing_PathCreate() 73 Path* path = CastToPath(cPath); in OH_Drawing_PathCopy() 78 return (OH_Drawing_Path*)new Path(*path); in OH_Drawing_PathCopy() 91 Path* path = CastToPath(cPath); in OH_Drawing_PathMoveTo() 101 Path* path = CastToPath(cPath); in OH_Drawing_PathRMoveTo() 111 Path* path = CastToPath(cPath); in OH_Drawing_PathLineTo() 121 Path* path = CastToPath(cPath); in OH_Drawing_PathRLineTo() 132 Path* pat in OH_Drawing_PathArcTo() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/ |
H A D | skia_hm_symbol_test.cpp | 49 Path path; in HWTEST_F() 50 Path path1; in HWTEST_F() 51 Path path2; in HWTEST_F() 52 std::vector<Path> paths { path1, path2 }; in HWTEST_F() 66 Path path1; in HWTEST_F() 67 Path path2; in HWTEST_F() 68 std::vector<Path> paths { path1, path2 }; in HWTEST_F() 69 std::vector<Path> multPaths; in HWTEST_F()
|
H A D | skia_path_test.cpp | 68 Path path; in HWTEST_F() 75 Path path2; in HWTEST_F() 108 Path path; in HWTEST_F() 109 Path path2; in HWTEST_F() 123 Path path; in HWTEST_F() 138 Path path; in HWTEST_F() 139 Path path2; in HWTEST_F() 166 Path path; in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_path_test.cpp | 76 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path1)->GetBounds().GetWidth(), 21.0)); in HWTEST_F() 77 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path1)->GetBounds().GetHeight(), 1.5)); in HWTEST_F() 94 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path2)->GetBounds().GetWidth(), 100.0)); in HWTEST_F() 95 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path2)->GetBounds().GetHeight(), 40.0)); in HWTEST_F() 112 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path3)->GetBounds().GetWidth(), 0.0)); in HWTEST_F() 113 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path3)->GetBounds().GetHeight(), 0.0)); in HWTEST_F() 130 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path4)->GetBounds().GetWidth(), 0.0)); in HWTEST_F() 131 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path4)->GetBounds().GetHeight(), 0.0)); in HWTEST_F() 148 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path5)->GetBounds().GetWidth(), 50.5)); in HWTEST_F() 149 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/hmsymbol_fuzzer/ |
H A D | hm_symbol_fuzzer.cpp | 38 Path path; in HmSymbolFuzzTest() 39 Path path1; in HmSymbolFuzzTest() 40 Path path2; in HmSymbolFuzzTest() 41 std::vector<Path> paths { path1, path2 }; in HmSymbolFuzzTest() 49 Path path3; in HmSymbolFuzzTest() 50 Path path4; in HmSymbolFuzzTest() 51 std::vector<Path> multPaths {path3, path4}; in HmSymbolFuzzTest()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_hm_symbol.cpp | 26 void SkiaHMSymbol::PathOutlineDecompose(const Path& path, std::vector<Path>& paths) in PathOutlineDecompose() 38 Path pathTmp; in PathOutlineDecompose() 45 const std::vector<Path>& paths, std::vector<Path>& multPaths) in MultilayerPath() 50 for (const Path& pathTmp : paths) { in MultilayerPath() 60 Path pathTmp; in MultilayerPath()
|
H A D | skia_hm_symbol.h | 31 static void PathOutlineDecompose(const Path& path, std::vector<Path>& paths); 34 const std::vector<Path>& paths, std::vector<Path>& multPaths);
|
H A D | skia_path.h | 48 bool InitWithInterpolate(const Path& srcPath, const Path& endingPath, scalar weight) override; 78 void AddPath(const Path& src, scalar dx, scalar dy, PathAddMode mode) override; 79 void AddPath(const Path& src, PathAddMode mode) override; 81 void AddPath(const Path& src, const Matrix& matrix, PathAddMode mode) override; 82 void ReverseAddPath(const Path& src) override; 87 bool Interpolate(const Path& ending, scalar weight, Path& out) override; 89 void TransformWithPerspectiveClip(const Matrix& matrix, Path* dst, bool applyPerspectiveClip) override; 91 void Offset(Path* ds [all...] |
H A D | skia_static_factory.h | 72 static bool GetFillPath(const Pen& pen, const Path& src, Path& dst, const Rect* rect, const Matrix& matrix); 77 static void PathOutlineDecompose(const Path& path, std::vector<Path>& paths); 79 const std::vector<Path>& paths, std::vector<Path>& multPaths); 81 static Path GetDrawingPathforTextBlob(uint16_t glyphId, const TextBlob* blob);
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw/ |
H A D | path.h | 72 class DRAWING_API Path { class 74 Path() noexcept; 75 Path(const Path& p) noexcept; 76 Path &operator=(const Path& p) noexcept; 77 virtual ~Path(); 85 * @brief Parses the SVG format string that describes the drawing path, and sets the Path. 93 * @brief Parses into a string in SVG format that describes the Path. 115 * @brief Appends arc to Path [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_path.cpp | 31 std::shared_ptr<RSPath> RSPath::CreateRSPath(const Drawing::Path& path) in CreateRSPath() 40 Drawing::Path drAnimationPath; in CreateRSPath() 47 drPath_ = new Drawing::Path(); in RSPath() 57 const Drawing::Path& RSPath::GetDrawingPath() const in GetDrawingPath() 62 void RSPath::SetDrawingPath(const Drawing::Path& path) in SetDrawingPath() 67 drPath_ = new Drawing::Path(path); in SetDrawingPath() 72 Drawing::Path path; in Reverse()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/text/ |
H A D | hm_symbol.cpp | 23 void DrawingHMSymbol::PathOutlineDecompose(const Path& path, std::vector<Path>& paths) in PathOutlineDecompose() 29 const std::vector<Path>& paths, std::vector<Path>& multPaths) in MultilayerPath()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | path_impl.h | 33 class Path; 50 virtual bool InitWithInterpolate(const Path& srcPath, const Path& endingPath, scalar weight) = 0; 79 virtual void AddPath(const Path& src, scalar dx, scalar dy, PathAddMode mode) = 0; 80 virtual void AddPath(const Path& src, PathAddMode mode) = 0; 82 virtual void AddPath(const Path& src, const Matrix& matrix, PathAddMode mode) = 0; 83 virtual void ReverseAddPath(const Path& src) = 0; 88 virtual bool Interpolate(const Path& ending, scalar weight, Path& out) = 0; 90 virtual void TransformWithPerspectiveClip(const Matrix& matrix, Path* ds [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/overdraw/ |
H A D | rs_cpu_overdraw_canvas_listener.cpp | 60 Drawing::Path path; in DrawLine() 68 Drawing::Path path; in DrawRect() 75 Drawing::Path path; in DrawRoundRect() 82 Drawing::Path path; in DrawNestedRoundRect() 91 Drawing::Path path; in DrawArc() 99 Drawing::Path path; in DrawPie() 106 Drawing::Path path; in DrawOval() 113 Drawing::Path path; in DrawCircle() 118 void RSCPUOverdrawCanvasListener::DrawPath(const Drawing::Path& path) in DrawPath() 120 Drawing::Path tPat in DrawPath() [all...] |
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/ |
H A D | path_test.cpp | 49 Path path; in TestDrawStar() 109 Path path; in TestMoveTo() 147 Path path; in TestLineTo() 165 Path path; in TestArcTo() 186 Path path; in TestCubicTo() 190 Path path2; in TestCubicTo() 210 Path path; in TestQuadTo() 215 Path path2; in TestQuadTo() 235 Path path; in TestAddRect() 250 Path path in TestAddRect() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/ |
H A D | rs_path.h | 35 static RSB_EXPORT std::shared_ptr<RSPath> CreateRSPath(const Drawing::Path& path); 46 void SetDrawingPath(const Drawing::Path& path); 47 const Drawing::Path& GetDrawingPath() const; 55 Drawing::Path* drPath_ = nullptr;
|
H A D | rs_mask.h | 44 static std::shared_ptr<RSMask> CreatePathMask(const Drawing::Path& maskPath, const Drawing::Brush& maskBrush); 46 const Drawing::Path& maskPath, const Drawing::Pen& maskPen, const Drawing::Brush& maskBrush); 59 void SetMaskPath(const Drawing::Path& path); 60 std::shared_ptr<Drawing::Path> GetMaskPath() const; 100 std::shared_ptr<Drawing::Path> maskPath_;
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_path_test.cpp | 43 static Drawing::Path CreateDrawingPath() in CreateDrawingPath() 45 Drawing::Path path; in CreateDrawingPath() 68 Drawing::Path path1 = CreateDrawingPath(); in HWTEST_F() 92 Drawing::Path path = CreateDrawingPath(); in HWTEST_F() 105 Drawing::Path path = CreateDrawingPath(); in HWTEST_F() 117 Drawing::Path path = CreateDrawingPath(); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/recording/ |
H A D | mask_cmd_list.h | 37 MaskPlayer(std::shared_ptr<Path>& path, Brush& brush, const CmdList& cmdList); 38 MaskPlayer(std::shared_ptr<Path>& path, Brush& brush, Pen& pen, const CmdList& cmdList); 47 std::shared_ptr<Path>& path_; 77 bool Playback(std::shared_ptr<Path>& path, Brush& brush) const; 79 bool Playback(std::shared_ptr<Path>& path, Pen& pen, Brush& brush) const; 129 void Playback(std::shared_ptr<Path>& path, const CmdList& cmdList) const;
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/ |
H A D | static_factory.h | 72 static bool GetFillPath(const Pen& pen, const Path& src, Path& dst, const Rect* rect, const Matrix& matrix); 77 static void PathOutlineDecompose(const Path& path, std::vector<Path>& paths); 79 const std::vector<Path>& paths, std::vector<Path>& multPaths); 81 static Path GetDrawingPathforTextBlob(uint16_t glyphId, const TextBlob* blob);
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/path_fuzzer/ |
H A D | path_fuzzer.cpp | 46 Path path; in PathAddFuzzTest() 66 Path path1; in PathOpFuzzTest() 67 Path ending; in PathOpFuzzTest() 68 Path out; in PathOpFuzzTest() 76 Path op; in PathOpFuzzTest() 79 Path path2; in PathOpFuzzTest() 97 Path path; in PathFuzzTest001() 98 Path pathTwo = Path(path); in PathFuzzTest001() 116 Path pat in PathFuzzTest002() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing/test_case/ |
H A D | draw_path_test.cpp | 25 Drawing::Path path; in OnTestFunctionCpu() 33 Drawing::Path path; in OnTestFunctionGpuUpScreen() 44 Drawing::Path path; in OnTestPerformance()
|
/foundation/graphic/graphic_2d/graphic_test/graphic_test/rs_display_effect/property_display/ |
H A D | fg_mask_test.cpp | 69 Drawing::Path path = Drawing::Path(); in GRAPHIC_TEST() 85 Drawing::Path path = Drawing::Path(); in GRAPHIC_TEST()
|