From 444a95f189ed1047f4fc86222acba52e15633c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E6=96=87=E9=9F=AC?= Date: Mon, 30 Dec 2024 14:37:01 +0800 Subject: [PATCH] =?UTF-8?q?trace=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 胡文韬 --- src/core/SkCanvas.cpp | 6 ++---- src/core/SkChromeRemoteGlyphCache.cpp | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 29af01e9..cdea5ad5 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -2382,8 +2382,7 @@ void SkCanvas::onDrawGlyphRunList(const sktext::GlyphRunList& glyphRunList, cons #if (defined(SK_GANESH) || defined(SK_GRAPHITE)) sk_sp SkCanvas::convertBlobToSlug( const SkTextBlob& blob, SkPoint origin, const SkPaint& paint) { -#if defined(IS_OHOS) -#else +#if !defined(SK_BUILD_FOR_OHOS) TRACE_EVENT0("skia", TRACE_FUNC); #endif auto glyphRunList = fScratchGlyphRunBuilder->blobToGlyphRunList(blob, origin); @@ -2502,8 +2501,7 @@ bool gSkBlobAsSlugTesting = false; void SkCanvas::drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) { -#if defined(IS_OHOS) -#else +#if !defined(SK_BUILD_FOR_OHOS) TRACE_EVENT0("skia", TRACE_FUNC); #endif RETURN_ON_NULL(blob); diff --git a/src/core/SkChromeRemoteGlyphCache.cpp b/src/core/SkChromeRemoteGlyphCache.cpp index 1117c012..99db2392 100644 --- a/src/core/SkChromeRemoteGlyphCache.cpp +++ b/src/core/SkChromeRemoteGlyphCache.cpp @@ -665,8 +665,7 @@ void SkStrikeServerImpl::checkForDeletedEntries() { sk_sp SkStrikeServerImpl::getOrCreateCache(const SkStrikeSpec& strikeSpec) { // In cases where tracing is turned off, make sure not to get an unused function warning. // Lambdaize the function. -#if defined(IS_OHOS) -#else +#if !defined(SK_BUILD_FOR_OHOS) TRACE_EVENT1("skia", "RecForDesc", "rec", TRACE_STR_COPY( [&strikeSpec](){ -- Gitee