Migrate legacy TRACE_EVENT_SCOPE_THREAD instant events to new API

提交: ab6b23fb | 2026-04-28 15:39:44

← 返回列表

Migrate legacy TRACE_EVENT_SCOPE_THREAD instant events to new API

Minor
提交哈希: ab6b23fbaa30f59c1f7b7c984e4f4247aea6d2a8
提交时间: 2026-04-28 15:39:44
影响等级: Minor
生成工具: chromium-watcher
上游审核链接: 查看上游审核 🔗

📋 摘要

This commit is a purely mechanical change that migrates all legacy
TRACE_EVENT_INSTANT0/1/2/3(..., TRACE_EVENT_SCOPE_THREAD) macros to the
new TRACE_EVENT_INSTANT(...) API. The new macro implicitly uses thread
scope, making the change functionally equivalent. It touches ~150 files
across android_webview, base, cc, chrome, components, content, media,
blink, and ui modules. macOS-relevant files include remote_cocoa's
native_widget_mac_nswindow.mm, render_widget_host_view_cocoa.mm,
ca_layer_tree_coordinator.mm, and command_dispatcher.mm.

🎯 影响分析

This change has minimal impact on WebView2Mac. While it touches four
macOS-relevant files (native_widget_mac_nswindow.mm,
render_widget_host_view_cocoa.mm, ca_layer_tree_coordinator.mm, and
command_dispatcher.mm), all modifications are purely trace macro API
renames with zero functional behavior change. The new TRACE_EVENT_INSTANT()
macro defaults to thread scope, identical to the old explicit
TRACE_EVENT_SCOPE_THREAD parameter. Edge downstream still uses the legacy
macros and will cleanly adopt this migration on merge with no conflict or
regression risk. No Mojo interfaces, Bridge/Host communication, window
lifecycle, or any WebView2Mac core code paths are affected.

受影响的类:

NativeWidgetMacNSWindow RenderWidgetHostViewCocoa CALayerTreeCoordinator CommandDispatcher