Home
last modified time | relevance | path

Searched refs:pathEffect (Results 1 - 22 of 22) sorted by relevance

/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/effect/
H A Dpath_effect_test.cpp49 auto pathEffect = PathEffect::CreateDashPathEffect(intervals, 4, 2.2f); in HWTEST_F() local
50 EXPECT_TRUE(pathEffect != nullptr); in HWTEST_F()
63 auto pathEffect = PathEffect::CreateDashPathEffect(intervals, 4, 1.5f); in HWTEST_F() local
64 EXPECT_TRUE(pathEffect != nullptr); in HWTEST_F()
77 auto pathEffect = PathEffect::CreatePathDashEffect(path, 1.1f, 1.5f, PathDashStyle::TRANSLATE); in HWTEST_F() local
78 EXPECT_TRUE(pathEffect != nullptr); in HWTEST_F()
91 auto pathEffect = PathEffect::CreatePathDashEffect(path, 1.5f, 1.0f, PathDashStyle::TRANSLATE); in HWTEST_F() local
92 EXPECT_TRUE(pathEffect != nullptr); in HWTEST_F()
104 auto pathEffect = PathEffect::CreateCornerPathEffect(0.5f); in HWTEST_F() local
105 EXPECT_TRUE(pathEffect ! in HWTEST_F()
117 auto pathEffect = PathEffect::CreateCornerPathEffect(0.2f); HWTEST_F() local
132 auto pathEffect = PathEffect::CreateSumPathEffect(pathEffect1, pathEffect2); HWTEST_F() local
147 auto pathEffect = PathEffect::CreateSumPathEffect(pathEffect1, pathEffect2); HWTEST_F() local
162 auto pathEffect = PathEffect::CreateComposePathEffect(pathEffect1, pathEffect2); HWTEST_F() local
177 auto pathEffect = PathEffect::CreateComposePathEffect(pathEffect1, pathEffect2); HWTEST_F() local
192 auto pathEffect = std::make_unique<PathEffect>(pathEffectType, intervals, 4, 1.0f); HWTEST_F() local
209 auto pathEffect = std::make_unique<PathEffect>(pathEffectType, intervals, 45, 15.0f); HWTEST_F() local
226 auto pathEffect = std::make_unique<PathEffect>(pathEffectType, path, 21.0f, 21.5f, PathDashStyle::TRANSLATE); HWTEST_F() local
243 auto pathEffect = std::make_unique<PathEffect>(pathEffectType, path, 1.0f, 1.5f, PathDashStyle::ROTATE); HWTEST_F() local
260 auto pathEffect = std::make_unique<PathEffect>(pathEffectType, 0.2f); HWTEST_F() local
277 auto pathEffect = std::make_unique<PathEffect>(pathEffectType, 0.5f); HWTEST_F() local
294 auto pathEffect = std::make_unique<PathEffect>(PathEffect::PathEffectType::PATH_DASH, pathEffect1, pathEffect2); HWTEST_F() local
309 auto pathEffect = std::make_unique<PathEffect>(PathEffect::PathEffectType::SUM, pathEffect1, pathEffect2); HWTEST_F() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_path_effect_test.cpp51 OH_Drawing_PathEffect* pathEffect = OH_Drawing_CreateDashPathEffect(intervals, 3, 0.0); in HWTEST_F() local
52 OH_Drawing_PenSetPathEffect(nullptr, pathEffect); in HWTEST_F()
54 OH_Drawing_PenSetPathEffect(pen, pathEffect); in HWTEST_F()
55 OH_Drawing_PathEffectDestroy(pathEffect); in HWTEST_F()
57 pathEffect = OH_Drawing_CreateDashPathEffect(nullptr, 3, 0.0); in HWTEST_F()
58 EXPECT_EQ(pathEffect, nullptr); in HWTEST_F()
60 pathEffect = OH_Drawing_CreateDashPathEffect(intervals, 0, 0.0); in HWTEST_F()
61 EXPECT_EQ(pathEffect, nullptr); in HWTEST_F()
63 pathEffect = OH_Drawing_CreateDashPathEffect(intervals, -1, 0.0); in HWTEST_F()
64 EXPECT_EQ(pathEffect, nullpt in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/effect/patheffect_fuzzer/
H A Dpatheffect_fuzzer.cpp64 PathEffect pathEffect = PathEffect(type); in PathEffectFuzzTest() local
66 PathEffect::CreateSumPathEffect(pathEffect, pathEffectTWO); in PathEffectFuzzTest()
67 PathEffect::CreateComposePathEffect(pathEffect, pathEffectTWO); in PathEffectFuzzTest()
68 pathEffect.GetType(); in PathEffectFuzzTest()
69 pathEffect.GetDrawingType(); in PathEffectFuzzTest()
74 PathEffect(type, pathEffect, pathEffectTWO); in PathEffectFuzzTest()
/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/
H A Dtexgine_dash_path_effect.cpp26 auto pathEffect = std::make_shared<TexginePathEffect>(); in Make() local
27 pathEffect->SetPathEffect(effect); in Make()
28 return pathEffect; in Make()
H A Dtexgine_path_1d_path_effect.cpp26 auto pathEffect = std::make_shared<TexginePathEffect>(); in Make() local
27 pathEffect->SetPathEffect(effect); in Make()
28 return pathEffect; in Make()
H A Dtexgine_paint.cpp84 void TexginePaint::SetPathEffect(const std::shared_ptr<TexginePathEffect> pathEffect) in SetPathEffect() argument
86 if (pathEffect == nullptr) { in SetPathEffect()
89 pen_->SetPathEffect(pathEffect->GetPathEffect()); in SetPathEffect()
H A Dtexgine_paint.h133 * @param pathEffect The path that replace SkPath when drawn
135 void SetPathEffect(const std::shared_ptr<TexginePathEffect> pathEffect);
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/path_effect_napi/
H A Djs_path_effect.cpp35 ROSEN_LOGE("JsPathEffect::Init failed to define pathEffect class"); in Init()
133 std::shared_ptr<PathEffect> pathEffect = PathEffect::CreateDashPathEffect(intervals, arrayLength, phase); in CreateDashPathEffect() local
134 return JsPathEffect::Create(env, pathEffect); in CreateDashPathEffect()
145 std::shared_ptr<PathEffect> pathEffect = PathEffect::CreateCornerPathEffect(radius); in CreateCornerPathEffect() local
146 return JsPathEffect::Create(env, pathEffect); in CreateCornerPathEffect()
149 napi_value JsPathEffect::Create(napi_env env, std::shared_ptr<PathEffect> pathEffect) in Create() argument
153 if (objValue == nullptr || pathEffect == nullptr) { in Create()
158 std::unique_ptr<JsPathEffect> jsPathEffect = std::make_unique<JsPathEffect>(pathEffect); in Create()
H A Djs_path_effect.h27 explicit JsPathEffect(std::shared_ptr<PathEffect> pathEffect = nullptr) : m_pathEffect(pathEffect) {} in JsPathEffect()
40 static napi_value Create(napi_env env, std::shared_ptr<PathEffect> pathEffect);
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/
H A Dpen_test.cpp648 auto pathEffect = std::make_shared<PathEffect>(PathEffect::PathEffectType::DASH, 0.2f); in HWTEST_F() local
649 ASSERT_TRUE(pathEffect != nullptr); in HWTEST_F()
650 pen->SetPathEffect(pathEffect); in HWTEST_F()
652 EXPECT_TRUE(result == pathEffect); in HWTEST_F()
666 auto pathEffect = std::make_shared<PathEffect>(PathEffect::PathEffectType::COMPOSE, 0.1f); in HWTEST_F() local
667 ASSERT_TRUE(pathEffect != nullptr); in HWTEST_F()
668 pen->SetPathEffect(pathEffect); in HWTEST_F()
670 EXPECT_TRUE(result == pathEffect); in HWTEST_F()
738 auto pathEffect = std::make_shared<PathEffect>(PathEffect::PathEffectType::NO_TYPE, 0.5f); in HWTEST_F() local
739 ASSERT_TRUE(pathEffect ! in HWTEST_F()
757 auto pathEffect = std::make_shared<PathEffect>(PathEffect::PathEffectType::CORNER, 0.2f); HWTEST_F() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkpatheffect_fuzzer/
H A Dpatheffect_fuzzer.cpp52 OH_Drawing_PathEffect* pathEffect = OH_Drawing_CreateDashPathEffect(intervals, number, phase); in NativePathEffectTest() local
59 OH_Drawing_PathEffectDestroy(pathEffect); in NativePathEffectTest()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_path_effect.cpp84 void SkiaPathEffect::SetSkPathEffect(const sk_sp<SkPathEffect>& pathEffect) in SetSkPathEffect() argument
86 pathEffect_ = pathEffect; in SetSkPathEffect()
H A Dskia_path_effect.h46 * @brief Update the member variable to pathEffect, adaptation layer calls.
48 void SetSkPathEffect(const sk_sp<SkPathEffect>& pathEffect);
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/paint_fuzzer/
H A Dpaint_fuzzer.cpp116 std::shared_ptr<PathEffect> pathEffect = PathEffect::CreateCornerPathEffect(radius); in PaintFuzzTest002() local
117 paint.SetPathEffect(pathEffect); in PaintFuzzTest002()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/pen_fuzzer/
H A Dpen_fuzzer.cpp80 std::shared_ptr<PathEffect> pathEffect = PathEffect::CreateCornerPathEffect(radius); in PenFuzzTestInner03() local
81 pen.SetPathEffect(pathEffect); in PenFuzzTestInner03()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/
H A Dmask_cmd_list.cpp183 auto pathEffect = CmdListHelper::GetPathEffectFromCmdList(cmdList, penHandle_.pathEffectHandle); in Playback() local
184 pen.SetPathEffect(pathEffect); in Playback()
H A Dcmd_list_helper.cpp657 FlattenableHandle CmdListHelper::AddPathEffectToCmdList(CmdList& cmdList, std::shared_ptr<PathEffect> pathEffect) in AddPathEffectToCmdList() argument
659 if (pathEffect == nullptr) { in AddPathEffectToCmdList()
662 PathEffect::PathEffectType type = pathEffect->GetType(); in AddPathEffectToCmdList()
663 auto data = pathEffect->Serialize(); in AddPathEffectToCmdList()
665 LOGD("pathEffect is invalid, %{public}s, %{public}d", __FUNCTION__, __LINE__); in AddPathEffectToCmdList()
686 auto pathEffect = std::make_shared<PathEffect> in GetPathEffectFromCmdList() local
688 if (pathEffect->Deserialize(pathEffectData) == false) { in GetPathEffectFromCmdList()
689 LOGD("pathEffect deserialize failed!"); in GetPathEffectFromCmdList()
693 return pathEffect; in GetPathEffectFromCmdList()
H A Ddraw_cmd.cpp253 auto pathEffect = CmdListHelper::GetPathEffectFromCmdList(cmdList, paintHandle.pathEffectHandle); in GeneratePaintFromHandle() local
254 paint.SetPathEffect(pathEffect); in GeneratePaintFromHandle()
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/impl/
H A Ddrawing_painter_impl.cpp56 auto pathEffect = Drawing::PathEffect::CreateComposePathEffect(*pathEffect1.get(), *pathEffect2.get()); in ConvertDecorStyle() local
57 paint.SetPathEffect(pathEffect); in ConvertDecorStyle()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/
H A Dpath_test.cpp170 OH_Drawing_PathEffect* pathEffect = in OnTestPerformance() local
172 OH_Drawing_PathEffectDestroy(pathEffect); in OnTestPerformance()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/recording/
H A Ddraw_cmd_test.cpp147 auto pathEffect = PathEffect::CreateCornerPathEffect(10); in HWTEST_F() local
148 paint.SetPathEffect(pathEffect); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/recording/
H A Dcmd_list_helper.h210 static FlattenableHandle AddPathEffectToCmdList(CmdList& cmdList, std::shared_ptr<PathEffect> pathEffect);

Completed in 31 milliseconds