diff --git a/impeller/renderer/backend/vulkan/gpu_tracer_vk.cc b/impeller/renderer/backend/vulkan/gpu_tracer_vk.cc index ea26279a206e8..348ede016d73c 100644 --- a/impeller/renderer/backend/vulkan/gpu_tracer_vk.cc +++ b/impeller/renderer/backend/vulkan/gpu_tracer_vk.cc @@ -76,6 +76,9 @@ bool GPUTracerVK::IsEnabled() const { } void GPUTracerVK::MarkFrameStart() { + if (!enabled_) { + return; + } FML_DCHECK(!in_frame_); in_frame_ = true; raster_thread_id_ = std::this_thread::get_id();