diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-08-18 18:38:10 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-08-18 18:38:10 +0800 |
commit | b53780b2106b0f233c48e27653336b8a629ca486 (patch) | |
tree | e5e2659eb23852012804e9ba8a290a8e19d8230f /src/ui/render | |
parent | d3568fb844c7b9ea59783b04899dbd94ad972b91 (diff) | |
download | cru-b53780b2106b0f233c48e27653336b8a629ca486.tar.gz cru-b53780b2106b0f233c48e27653336b8a629ca486.tar.bz2 cru-b53780b2106b0f233c48e27653336b8a629ca486.zip |
Rename CRU_LOG_* to CRU_LOG_TAG_*.
Diffstat (limited to 'src/ui/render')
-rw-r--r-- | src/ui/render/BorderRenderObject.cpp | 4 | ||||
-rw-r--r-- | src/ui/render/FlexLayoutRenderObject.cpp | 2 | ||||
-rw-r--r-- | src/ui/render/RenderObject.cpp | 10 | ||||
-rw-r--r-- | src/ui/render/TextRenderObject.cpp | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/render/BorderRenderObject.cpp b/src/ui/render/BorderRenderObject.cpp index 81a1aa60..0e97c5e8 100644 --- a/src/ui/render/BorderRenderObject.cpp +++ b/src/ui/render/BorderRenderObject.cpp @@ -81,7 +81,7 @@ RenderObject* BorderRenderObject::HitTest(const Point& point) { void BorderRenderObject::Draw(platform::graphics::IPainter* painter) { if constexpr (debug_flags::draw) { - CRU_LOG_DEBUG( + CRU_LOG_TAG_DEBUG( u"BorderRenderObject draw, background: {}, foreground: {}.", background_brush_ == nullptr ? u"NONE" : background_brush_->GetDebugString(), @@ -95,7 +95,7 @@ void BorderRenderObject::Draw(platform::graphics::IPainter* painter) { if (is_border_enabled_) { if (border_brush_ == nullptr) { - CRU_LOG_WARN(u"Border is enabled but border brush is null."); + CRU_LOG_TAG_WARN(u"Border is enabled but border brush is null."); } else { painter->FillGeometry(geometry_.get(), border_brush_.get()); } diff --git a/src/ui/render/FlexLayoutRenderObject.cpp b/src/ui/render/FlexLayoutRenderObject.cpp index 7bbf9d57..588c379b 100644 --- a/src/ui/render/FlexLayoutRenderObject.cpp +++ b/src/ui/render/FlexLayoutRenderObject.cpp @@ -300,7 +300,7 @@ Size FlexLayoutMeasureContentImpl( if (max_main_length.IsSpecified() && total_length > max_main_length.GetLengthOrUndefined()) { - CRU_LOG_WARN( + CRU_LOG_TAG_WARN( u"(Measure) Children's main axis length exceeds required max length."); total_length = max_main_length.GetLengthOrUndefined(); } else if (min_main_length.IsSpecified() && diff --git a/src/ui/render/RenderObject.cpp b/src/ui/render/RenderObject.cpp index 64411036..b3a28d6d 100644 --- a/src/ui/render/RenderObject.cpp +++ b/src/ui/render/RenderObject.cpp @@ -119,7 +119,7 @@ void RenderObject::Measure(const MeasureRequirement& requirement, preferred_size.OverrideBy(preferred_size_); if constexpr (cru::ui::debug_flags::layout) { - CRU_LOG_DEBUG(u"{} Measure begins :\nrequirement: {}\npreferred size: {}", + CRU_LOG_TAG_DEBUG(u"{} Measure begins :\nrequirement: {}\npreferred size: {}", this->GetDebugPathInTree(), requirement.ToDebugString(), preferred_size.ToDebugString()); } @@ -127,7 +127,7 @@ void RenderObject::Measure(const MeasureRequirement& requirement, desired_size_ = OnMeasureCore(merged_requirement, merged_preferred_size); if constexpr (cru::ui::debug_flags::layout) { - CRU_LOG_DEBUG(u"{} Measure ends :\nresult size: {}", + CRU_LOG_TAG_DEBUG(u"{} Measure ends :\nresult size: {}", this->GetDebugPathInTree(), desired_size_); } @@ -144,7 +144,7 @@ Size RenderObject::Measure1(const BoxConstraint& constraint) { void RenderObject::Layout(const Point& offset) { if constexpr (cru::ui::debug_flags::layout) { - CRU_LOG_DEBUG(u"{} Layout :\noffset: {} size: {}", + CRU_LOG_TAG_DEBUG(u"{} Layout :\noffset: {} size: {}", this->GetDebugPathInTree(), offset, desired_size_); } offset_ = offset; @@ -192,13 +192,13 @@ Size RenderObject::OnMeasureCore1(const BoxConstraint& constraint) { if (space_size.width > merged_constraint.max.width) { space_size.width = merged_constraint.max.width; - CRU_LOG_WARN(u"{} space width is over constraint.max.width", + CRU_LOG_TAG_WARN(u"{} space width is over constraint.max.width", this->GetDebugPathInTree()); } if (space_size.height > merged_constraint.max.height) { space_size.height = merged_constraint.max.height; - CRU_LOG_WARN(u"{} space height is over constraint.max.height", + CRU_LOG_TAG_WARN(u"{} space height is over constraint.max.height", this->GetDebugPathInTree()); } diff --git a/src/ui/render/TextRenderObject.cpp b/src/ui/render/TextRenderObject.cpp index 14e45080..8a579041 100644 --- a/src/ui/render/TextRenderObject.cpp +++ b/src/ui/render/TextRenderObject.cpp @@ -177,7 +177,7 @@ RenderObject* TextRenderObject::HitTest(const Point& point) { void TextRenderObject::Draw(platform::graphics::IPainter* painter) { if constexpr (debug_flags::draw) { - CRU_LOG_DEBUG( + CRU_LOG_TAG_DEBUG( u"Begin to paint, total_offset: {}, size: {}, text_layout: " u"{}, brush: {}.", this->GetTotalOffset(), this->GetDesiredSize(), |