/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/modifier/ |
H A D | rs_modifier_type.h | 30 enum class RSModifierType : int16_t { enum 230 { RSModifierType::BOUNDS, "Bounds" }, 231 { RSModifierType::FRAME, "Frame" }, 234 { RSModifierType::PIVOT, "Pivot" }, 241 { RSModifierType::SCALE, "Scale" }, 242 { RSModifierType::SKEW, "Skew" }, 243 { RSModifierType::PERSP, "Persp" }, 248 { RSModifierType::ALPHA, "Alpha" }, 295 { RSModifierType::MASK, "Mask" }, 310 { RSModifierType::SEPIA, "Sepia" }, [all …]
|
H A D | rs_render_modifier.h | 66 virtual RSModifierType GetType() in GetType() 68 return RSModifierType::INVALID; in GetType() 115 void SetType(RSModifierType type) in SetType() 120 RSModifierType GetType() override in GetType() 126 RSModifierType drawStyle_ = RSModifierType::GEOMETRYTRANS; 150 RSModifierType GetType() override in GetType() 154 void SetType(RSModifierType type) in SetType() 181 RSModifierType drawStyle_ = RSModifierType::EXTENDED; 276 RSModifierType GetType() override in GetType() 293 RSModifierType GetType() override in GetType() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/ |
H A D | rs_property_drawable.cpp | 27 template<RSModifierType T> 62 { RSModifierType::INVALID, RSPropertyDrawableSlot::INVALID }, 64 { RSModifierType::FRAME, RSPropertyDrawableSlot::FRAME_OFFSET }, 67 { RSModifierType::PIVOT, RSPropertyDrawableSlot::BOUNDS_MATRIX }, 75 { RSModifierType::SKEW, RSPropertyDrawableSlot::BOUNDS_MATRIX }, 81 { RSModifierType::ALPHA, RSPropertyDrawableSlot::ALPHA }, 113 { RSModifierType::VISIBLE, RSPropertyDrawableSlot::INVALID }, 122 { RSModifierType::MASK, RSPropertyDrawableSlot::MASK }, 123 { RSModifierType::SPHERIZE, RSPropertyDrawableSlot::INVALID }, 173 { RSModifierType::CUSTOM, RSPropertyDrawableSlot::INVALID }, [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/modifier/ |
H A D | rs_showing_properties_freezer.cpp | 30 template<typename T, RSModifierType Type> 63 return GetPropertyImpl<Vector4f, RSModifierType::BOUNDS>(); in GetBounds() 68 return GetPropertyImpl<Vector4f, RSModifierType::FRAME>(); in GetFrame() 73 return GetPropertyImpl<float, RSModifierType::POSITION_Z>(); in GetPositionZ() 78 return GetPropertyImpl<Vector2f, RSModifierType::PIVOT>(); in GetPivot() 83 return GetPropertyImpl<float, RSModifierType::PIVOT_Z>(); in GetPivotZ() 93 return GetPropertyImpl<float, RSModifierType::ROTATION>(); in GetRotation() 123 return GetPropertyImpl<Vector2f, RSModifierType::SCALE>(); in GetScale() 128 return GetPropertyImpl<Vector2f, RSModifierType::SKEW>(); in GetSkew() 133 return GetPropertyImpl<Vector2f, RSModifierType::PERSP>(); in GetPersp() [all …]
|
H A D | rs_property_modifier.h | 28 RSModifierType GetModifierType() const override; 38 RSModifierType GetModifierType() const override; 48 RSModifierType GetModifierType() const override; 58 RSModifierType GetModifierType() const override; 67 RSModifierType GetModifierType() const override; 76 RSModifierType GetModifierType() const override; 85 RSModifierType GetModifierType() const override; 94 RSModifierType GetModifierType() const override; 104 RSModifierType GetModifierType() const override; 114 RSModifierType GetModifierType() const override; [all …]
|
H A D | rs_extended_modifier.h | 53 RSModifierType GetModifierType() const override in GetModifierType() 55 return RSModifierType::EXTENDED; in GetModifierType() 122 RSModifierType GetModifierType() const override in GetModifierType() 124 return RSModifierType::GEOMETRYTRANS; in GetModifierType() 178 RSModifierType GetModifierType() const override in GetModifierType() 180 return RSModifierType::TRANSITION; in GetModifierType() 195 return RSModifierType::BACKGROUND_STYLE; in GetModifierType() 206 return RSModifierType::CONTENT_STYLE; in GetModifierType() 217 return RSModifierType::FOREGROUND_STYLE; in GetModifierType() 228 return RSModifierType::OVERLAY_STYLE; in GetModifierType() [all …]
|
H A D | rs_property_modifier.cpp | 27 RSModifierType RSEnvForegroundColorModifier::GetModifierType() const in GetModifierType() 29 return RSModifierType::ENV_FOREGROUND_COLOR; in GetModifierType() 44 return RSModifierType::ENV_FOREGROUND_COLOR_STRATEGY; in GetModifierType() 59 return RSModifierType::CUSTOM_CLIP_TO_FRAME; in GetModifierType() 77 return RSModifierType::BEHIND_WINDOW_FILTER_RADIUS; in GetModifierType() 89 RSModifierType::BEHIND_WINDOW_FILTER_SATURATION) in RSBehindWindowFilterSaturationModifier() 96 return RSModifierType::BEHIND_WINDOW_FILTER_SATURATION; in GetModifierType() 108 RSModifierType::BEHIND_WINDOW_FILTER_BRIGHTNESS) in RSBehindWindowFilterBrightnessModifier() 115 return RSModifierType::BEHIND_WINDOW_FILTER_BRIGHTNESS; in GetModifierType() 127 RSModifierType::BEHIND_WINDOW_FILTER_MASK_COLOR) in RSBehindWindowFilterMaskColorModifier() [all …]
|
H A D | rs_modifier.h | 44 RSModifier(const std::shared_ptr<RSPropertyBase>& property, const RSModifierType type) in RSModifier() 50 virtual RSModifierType GetModifierType() const in GetModifierType() 52 return RSModifierType::INVALID; in GetModifierType() 120 RSGeometryModifier(const std::shared_ptr<RSPropertyBase>& property, const RSModifierType type) in RSGeometryModifier() 142 RSBackgroundModifier(const std::shared_ptr<RSPropertyBase>& property, const RSModifierType type) in RSBackgroundModifier() 157 RSContentModifier(const std::shared_ptr<RSPropertyBase>& property, const RSModifierType type) in RSContentModifier() 172 RSForegroundModifier(const std::shared_ptr<RSPropertyBase>& property, const RSModifierType type) in RSForegroundModifier() 187 RSOverlayModifier(const std::shared_ptr<RSPropertyBase>& property, const RSModifierType type) in RSOverlayModifier() 202 RSAppearanceModifier(const std::shared_ptr<RSPropertyBase>& property, const RSModifierType type) in RSAppearanceModifier()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/ |
H A D | rs_node.cpp | 89 …if (type == RSModifierType::BOUNDS || type == RSModifierType::FRAME || type == RSModifierType::TRA… in IsPathAnimatableModifier() 499 RSModifierType::MAGNIFIER_PARA, para); in SetMagnifierParams() 1209 RSModifierType::BACKGROUND_SHADER, shader); in SetBackgroundShader() 1224 RSModifierType::BG_IMAGE_INNER_RECT, rect); in SetBgImageInnerRect() 1333 RSModifierType::BORDER_DASH_GAP, dashGap); in SetBorderDashGap() 1359 RSModifierType::OUTLINE_COLOR, color); in SetOutlineColor() 1365 RSModifierType::OUTLINE_WIDTH, width); in SetOutlineWidth() 1373 RSModifierType::OUTLINE_STYLE, styles); in SetOutlineStyle() 1385 RSModifierType::OUTLINE_DASH_GAP, dashGap); in SetOutlineDashGap() 1391 RSModifierType::OUTLINE_RADIUS, radius); in SetOutlineRadius() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/modifier/ |
H A D | rs_render_modifier.cpp | 67 static std::unordered_map<RSModifierType, ModifierUnmarshallingFunc> funcLUT = { 69 { RSModifierType::EXTENDED, [](Parcel& parcel) -> RSRenderModifier* { in __anon35d38fe50202() 76 modifier->SetType(static_cast<RSModifierType>(type)); in __anon35d38fe50202() 80 { RSModifierType::ENV_FOREGROUND_COLOR, [](Parcel& parcel) -> RSRenderModifier* { in __anon35d38fe50302() 98 { RSModifierType::CUSTOM_CLIP_TO_FRAME, [](Parcel& parcel) -> RSRenderModifier* { in __anon35d38fe50502() 107 { RSModifierType::GEOMETRYTRANS, [](Parcel& parcel) -> RSRenderModifier* { in __anon35d38fe50602() 114 modifier->SetType(static_cast<RSModifierType>(type)); in __anon35d38fe50602() 177 return parcel.WriteInt16(static_cast<int16_t>(RSModifierType::EXTENDED)) && in Marshalling() 184 return parcel.WriteInt16(static_cast<int16_t>(RSModifierType::ENV_FOREGROUND_COLOR)) && in Marshalling() 306 return parcel.WriteInt16(static_cast<int16_t>(RSModifierType::GEOMETRYTRANS)) && in Marshalling() [all …]
|
H A D | rs_render_property.cpp | 32 if (modifierType_ < RSModifierType::BOUNDS || modifierType_ > RSModifierType::TRANSLATE_Z || in OnChange() 48 case RSModifierType::FRAME: in UpdatePropertyUnit() 49 case RSModifierType::TRANSLATE: in UpdatePropertyUnit() 52 case RSModifierType::SCALE: in UpdatePropertyUnit() 55 case RSModifierType::ROTATION_X: in UpdatePropertyUnit() 56 case RSModifierType::ROTATION_Y: in UpdatePropertyUnit() 57 case RSModifierType::ROTATION: in UpdatePropertyUnit() 374 case RSModifierType::BORDER_STYLE: in Dump() 399 case RSModifierType::BORDER_WIDTH: in Dump() 402 case RSModifierType::OUTLINE_WIDTH: in Dump() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/modifier/ |
H A D | rs_extended_modifier_test.cpp | 137 RSModifierType type = RSModifierType::EXTENDED; 207 ASSERT_EQ(extendedModifier.GetModifierType(), RSModifierType::EXTENDED); 208 ASSERT_EQ(geometryTransModifier.GetModifierType(), RSModifierType::GEOMETRYTRANS); 209 ASSERT_EQ(transitionModifier.GetModifierType(), RSModifierType::TRANSITION); 210 ASSERT_EQ(backgroundStyleModifier.GetModifierType(), RSModifierType::BACKGROUND_STYLE); 211 ASSERT_EQ(contentStyleModifier.GetModifierType(), RSModifierType::CONTENT_STYLE); 212 ASSERT_EQ(foregroundStyleModifier.GetModifierType(), RSModifierType::FOREGROUND_STYLE); 213 ASSERT_EQ(overlayStyleModifier.GetModifierType(), RSModifierType::OVERLAY_STYLE); 214 ASSERT_EQ(nodeModifier.GetModifierType(), RSModifierType::NODE_MODIFIER);
|
H A D | rs_property_modifier_test.cpp | 58 RSModifierType ModifierType = colorModifier->GetModifierType(); 59 EXPECT_EQ(ModifierType, RSModifierType::ENV_FOREGROUND_COLOR); 90 RSModifierType res = colorStrategyModifier->GetModifierType(); 91 EXPECT_EQ(res, RSModifierType::ENV_FOREGROUND_COLOR_STRATEGY); 122 RSModifierType ModifierType = clipModifier->GetModifierType(); 123 EXPECT_EQ(ModifierType, RSModifierType::CUSTOM_CLIP_TO_FRAME); 366 RSModifierType ModifierType = modifier->GetModifierType(); 367 EXPECT_EQ(ModifierType, RSModifierType::BEHIND_WINDOW_FILTER_RADIUS); 384 RSModifierType ModifierType = modifier->GetModifierType(); 402 RSModifierType ModifierType = modifier->GetModifierType(); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/ |
H A D | rs_drawable.cpp | 33 constexpr int DIRTY_LUT_SIZE = static_cast<int>(RSModifierType::MAX_RS_MODIFIER_TYPE); 199 template<RSModifierType type> 213 ModifierGenerator<RSModifierType::TRANSITION>, // TRANSITION, 228 ModifierGenerator<RSModifierType::BACKGROUND_STYLE>, // BACKGROUND_STYLE, 238 ModifierGenerator<RSModifierType::CONTENT_STYLE>, // CONTENT_STYLE, 240 ModifierGenerator<RSModifierType::FOREGROUND_STYLE>, // FOREGROUND_STYLE, 257 ModifierGenerator<RSModifierType::OVERLAY_STYLE>, // OVERLAY, 536 if (dirtyTypes.test(static_cast<size_t>(RSModifierType::BOUNDS)) || in CalculateDirtySlots() 537 dirtyTypes.test(static_cast<size_t>(RSModifierType::CORNER_RADIUS)) || in CalculateDirtySlots() 538 dirtyTypes.test(static_cast<size_t>(RSModifierType::CLIP_BOUNDS))) { in CalculateDirtySlots() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/ |
H A D | rs_property_drawable_utilities_test.cpp | 66 RSModifierType type = RSModifierType::BOUNDS; 69 EXPECT_EQ(type, RSModifierType::BOUNDS); 82 content.drawCmdModifiers_.insert(std::make_pair(RSModifierType::BOUNDS, modifierList)); 84 EXPECT_EQ(type, RSModifierType::BOUNDS);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/ |
H A D | rs_single_frame_composer_test.cpp | 35 …td::list<std::shared_ptr<RSRenderModifier>>& modifierList, bool isSingleFrame, RSModifierType type) in ModifierAddToList() 63 RSModifierType type = RSModifierType::FRAME; 90 modifier->SetType(RSModifierType::CUSTOM);
|
H A D | rs_canvas_drawing_render_node_test.cpp | 83 modifierCast->drawStyle_ = RSModifierType::BOUNDS; 110 …rsCanvasDrawingRenderNode.renderContent_->drawCmdModifiers_.emplace(RSModifierType::CONTENT_STYLE,… 176 …rsCanvasDrawingRenderNode.renderContent_->drawCmdModifiers_.emplace(RSModifierType::CONTENT_STYLE,… 200 modifierCast->SetType(RSModifierType::CONTENT_STYLE); 229 …rsCanvasDrawingRenderNode.renderContent_->drawCmdModifiers_.emplace(RSModifierType::CONTENT_STYLE,… 317 rsCanvasDrawingRenderNode.ApplyDrawCmdModifier(contextArgs, RSModifierType::CONTENT_STYLE); 321 auto type = RSModifierType::CONTENT_STYLE; 448 modifierCast->drawStyle_ = RSModifierType::BOUNDS; 451 rsCanvasDrawingRenderNode.AddDirtyType(RSModifierType::BLOOM); 456 auto type = RSModifierType::CONTENT_STYLE;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/ |
H A D | rs_canvas_drawing_render_node.h | 69 void AddDirtyType(RSModifierType type) override; 75 const std::map<RSModifierType, std::list<Drawing::DrawCmdListPtr>>& GetDrawCmdLists() const; 82 void ApplyDrawCmdModifier(RSModifierContext& context, RSModifierType type); 105 std::map<RSModifierType, std::list<Drawing::DrawCmdListPtr>> drawCmdLists_;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/command/ |
H A D | rs_canvas_node_command_test.cpp | 49 RSModifierType type = RSModifierType::INVALID; 104 RSModifierType type = RSModifierType::INVALID;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/drawable/ |
H A D | rs_misc_drawable_test.cpp | 148 …ASSERT_EQ(DrawableV2::RSCustomModifierDrawable::OnGenerate(node, RSModifierType::BOUNDS), nullptr); 159 node.renderContent_->drawCmdModifiers_.emplace(RSModifierType::BOUNDS, list); 160 node.AddDirtyType(RSModifierType::BOUNDS); 162 DrawableV2::RSCustomModifierDrawable::OnGenerate(node, RSModifierType::BOUNDS)); 172 nodeTwo.renderContent_->drawCmdModifiers_.emplace(RSModifierType::BOUNDS, list); 174 DrawableV2::RSCustomModifierDrawable::OnGenerate(nodeTwo, RSModifierType::BOUNDS)); 263 node.renderContent_->drawCmdModifiers_.emplace(RSModifierType::ENV_FOREGROUND_COLOR, list); 306 …node.renderContent_->drawCmdModifiers_.emplace(RSModifierType::ENV_FOREGROUND_COLOR_STRATEGY, list… 355 node.renderContent_->drawCmdModifiers_.emplace(RSModifierType::CUSTOM_CLIP_TO_FRAME, list);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/ui/ |
H A D | rs_node_test.cpp | 3038 RSModifierType modifierType = RSModifierType::BOUNDS; 3080 RSModifierType modifierType = RSModifierType::FRAME; 3101 RSModifierType modifierType = RSModifierType::FRAME; 3122 RSModifierType modifierType = RSModifierType::PIVOT; 3143 RSModifierType modifierType = RSModifierType::PIVOT; 3206 RSModifierType modifierType = RSModifierType::SCALE; 3227 RSModifierType modifierType = RSModifierType::SCALE; 3248 RSModifierType modifierType = RSModifierType::SKEW; 3269 RSModifierType modifierType = RSModifierType::SKEW; 3290 RSModifierType modifierType = RSModifierType::PERSP; [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_canvas_drawing_render_node.cpp | 154 ApplyDrawCmdModifier(context, RSModifierType::CONTENT_STYLE); 230 ApplyDrawCmdModifier(context, RSModifierType::CONTENT_STYLE); in PlaybackInCorrespondThread() 279 void RSCanvasDrawingRenderNode::ApplyDrawCmdModifier(RSModifierContext& context, RSModifierType typ… in ApplyDrawCmdModifier() 423 auto it = GetDrawCmdModifiers().find(RSModifierType::CONTENT_STYLE); in GetSizeFromDrawCmdModifiers() 460 void RSCanvasDrawingRenderNode::AddDirtyType(RSModifierType modifierType) in AddDirtyType() 488 if (type != RSModifierType::CONTENT_STYLE) { in AddDirtyType() 531 const std::map<RSModifierType, std::list<Drawing::DrawCmdListPtr>>& RSCanvasDrawingRenderNode::GetD… in GetDrawCmdLists()
|
H A D | rs_canvas_render_node.cpp | 57 RSModifierType type, bool isSingleFrameComposer) in UpdateRecording() 144 ApplyDrawCmdModifier(context, RSModifierType::TRANSITION); in DrawShadow() 145 ApplyDrawCmdModifier(context, RSModifierType::ENV_FOREGROUND_COLOR); in DrawShadow() 223 void RSCanvasRenderNode::ApplyDrawCmdModifier(RSModifierContext& context, RSModifierType type) in ApplyDrawCmdModifier()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | focus_state_modifier.h | 27 using RSModifierType = Rosen::RSModifierType; variable 35 RSModifierType GetModifierType() const override in GetModifierType() 37 return RSModifierType::OVERLAY_STYLE; in GetModifierType()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/drawable/ |
H A D | rs_misc_drawable.h | 32 enum class RSModifierType : int16_t; 65 RSCustomModifierDrawable(RSModifierType type) : type_(type) {} in RSCustomModifierDrawable() 66 static RSDrawable::Ptr OnGenerate(const RSRenderNode& content, RSModifierType type); 73 RSModifierType type_;
|