Home
last modified time | relevance | path

Searched refs:pathEffect (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/effect/
H A Dpath_effect_test.cpp50 EXPECT_TRUE(pathEffect != nullptr);
64 EXPECT_TRUE(pathEffect != nullptr);
78 EXPECT_TRUE(pathEffect != nullptr);
92 EXPECT_TRUE(pathEffect != nullptr);
105 EXPECT_TRUE(pathEffect != nullptr);
118 EXPECT_TRUE(pathEffect != nullptr);
133 EXPECT_TRUE(pathEffect != nullptr);
148 EXPECT_TRUE(pathEffect != nullptr);
194 auto type = pathEffect->GetType();
211 auto type = pathEffect->GetType();
[all …]
/ohos5.0/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); variable
52 OH_Drawing_PenSetPathEffect(nullptr, pathEffect);
54 OH_Drawing_PenSetPathEffect(pen, pathEffect);
55 OH_Drawing_PathEffectDestroy(pathEffect);
57 pathEffect = OH_Drawing_CreateDashPathEffect(nullptr, 3, 0.0);
58 EXPECT_EQ(pathEffect, nullptr);
60 pathEffect = OH_Drawing_CreateDashPathEffect(intervals, 0, 0.0);
61 EXPECT_EQ(pathEffect, nullptr);
63 pathEffect = OH_Drawing_CreateDashPathEffect(intervals, -1, 0.0);
64 EXPECT_EQ(pathEffect, nullptr);
/ohos5.0/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()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/path_effect_napi/
H A Djs_path_effect.cpp133 …std::shared_ptr<PathEffect> pathEffect = PathEffect::CreateDashPathEffect(intervals, arrayLength, … 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)…
40 static napi_value Create(napi_env env, std::shared_ptr<PathEffect> pathEffect);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/
H A Dpen_test.cpp649 ASSERT_TRUE(pathEffect != nullptr);
650 pen->SetPathEffect(pathEffect);
652 EXPECT_TRUE(result == pathEffect);
667 ASSERT_TRUE(pathEffect != nullptr);
668 pen->SetPathEffect(pathEffect);
670 EXPECT_TRUE(result == pathEffect);
739 ASSERT_TRUE(pathEffect != nullptr);
740 pen->SetPathEffect(pathEffect);
742 EXPECT_EQ(result, pathEffect);
759 pen->SetPathEffect(pathEffect);
[all …]
/ohos5.0/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.h135 void SetPathEffect(const std::shared_ptr<TexginePathEffect> pathEffect);
/ohos5.0/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()
/ohos5.0/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.h48 void SetSkPathEffect(const sk_sp<SkPathEffect>& pathEffect);
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/
H A Dcmd_list_helper.cpp657 …dle 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()
686 auto pathEffect = std::make_shared<PathEffect> in GetPathEffectFromCmdList() local
688 if (pathEffect->Deserialize(pathEffectData) == false) { in GetPathEffectFromCmdList()
693 return pathEffect; in GetPathEffectFromCmdList()
H A Dmask_cmd_list.cpp188 auto pathEffect = CmdListHelper::GetPathEffectFromCmdList(cmdList, penHandle_.pathEffectHandle); in Playback() local
189 pen.SetPathEffect(pathEffect); in Playback()
H A Ddraw_cmd.cpp236 … auto pathEffect = CmdListHelper::GetPathEffectFromCmdList(cmdList, paintHandle.pathEffectHandle); in GeneratePaintFromHandle() local
237 paint.SetPathEffect(pathEffect); in GeneratePaintFromHandle()
/ohos5.0/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.ge… in ConvertDecorStyle() local
57 paint.SetPathEffect(pathEffect); in ConvertDecorStyle()
/ohos5.0/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()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/recording/
H A Dcmd_list_helper.h210 …FlattenableHandle AddPathEffectToCmdList(CmdList& cmdList, std::shared_ptr<PathEffect> pathEffect);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/recording/
H A Ddraw_cmd_test.cpp151 auto pathEffect = PathEffect::CreateCornerPathEffect(10); variable
152 paint.SetPathEffect(pathEffect);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/
H A Djs-apis-graphics-drawing.md5666 let pathEffect = drawing.PathEffect.createDashPathEffect([30, 10], 0);
5667 pen.setPathEffect(pathEffect);
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A Djs-apis-graphics-drawing.md5666 let pathEffect = drawing.PathEffect.createDashPathEffect([30, 10], 0);
5667 pen.setPathEffect(pathEffect);