From b74f100f05f384caabfd2249efe197887ffbe5c5 Mon Sep 17 00:00:00 2001 From: qlxie Date: Thu, 5 Jun 2025 11:31:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E6=95=B4=E6=94=B9=E8=A1=A5?= =?UTF-8?q?=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qlxie Change-Id: I4a967ad20d197e00150180c1272ce0cd3a824720 --- frameworks/src/core/components/canvas_component.cpp | 2 +- frameworks/src/core/components/canvas_component.h | 8 ++++---- frameworks/src/core/context/js_profiler.cpp | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frameworks/src/core/components/canvas_component.cpp b/frameworks/src/core/components/canvas_component.cpp index 7575eafd..ae633d76 100644 --- a/frameworks/src/core/components/canvas_component.cpp +++ b/frameworks/src/core/components/canvas_component.cpp @@ -207,11 +207,11 @@ CanvasComponent::CanvasComponent(jerry_value_t options, jerry_value_t children, #if GRAPHIC_ENABLE_GRADIENT_FILL_FLAG colorStopValue_(nullptr), #endif - lineWidthValue_(1), #if GRAPHIC_ENABLE_PATTERN_FILL_FLAG patternPathValue_(nullptr), patternRepeatTypeValue_(nullptr), #endif + lineWidthValue_(1), lineCapValue_(nullptr), lineJoinValue_(nullptr) { diff --git a/frameworks/src/core/components/canvas_component.h b/frameworks/src/core/components/canvas_component.h index d513230b..523950ef 100644 --- a/frameworks/src/core/components/canvas_component.h +++ b/frameworks/src/core/components/canvas_component.h @@ -392,10 +392,6 @@ private: int16_t shadowBlurValue_; char *shadowColorValue_; #endif - int16_t lineWidthValue_; - - char *lineCapValue_; - char *lineJoinValue_; #if GRAPHIC_ENABLE_LINEJOIN_FLAG float miterLimitValue_; #endif @@ -487,6 +483,10 @@ private: #if GRAPHIC_ENABLE_PATTERN_FILL_FLAG static const char * const FUNC_CREATEPATTERN; #endif + int16_t lineWidthValue_; + + char *lineCapValue_; + char *lineJoinValue_; }; } // namespace ACELite } // namespace OHOS diff --git a/frameworks/src/core/context/js_profiler.cpp b/frameworks/src/core/context/js_profiler.cpp index d5ba66cf..a37ae3b0 100644 --- a/frameworks/src/core/context/js_profiler.cpp +++ b/frameworks/src/core/context/js_profiler.cpp @@ -351,6 +351,7 @@ void JSProfiler::Output() continue; } #if (FEATURE_ACELITE_MC_JS_PROFILER == 1) + (void)g_profilerPhaseConfig; HILOG_DEBUG(HILOG_MODULE_ACE, "the length of g_profilerPhaseConfig is %{public}zu", sizeof(g_profilerPhaseConfig) / sizeof(g_profilerPhaseConfig[0])); if (g_profiler_msg_index == 0) { -- Gitee