From 0c370f2f09390376e991e0d41423c0fc6b783f0e Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 21 May 2024 14:16:20 -0700 Subject: [PATCH] [Impeller] Delete impeller_trace_all_gl_calls. (flutter/engine#52963) It's useless. --- engine/src/flutter/impeller/BUILD.gn | 4 ---- .../flutter/impeller/renderer/backend/gles/proc_table_gles.h | 3 --- engine/src/flutter/impeller/tools/args.gni | 4 ---- 3 files changed, 11 deletions(-) diff --git a/engine/src/flutter/impeller/BUILD.gn b/engine/src/flutter/impeller/BUILD.gn index 8e7aee9978..141defe0a7 100644 --- a/engine/src/flutter/impeller/BUILD.gn +++ b/engine/src/flutter/impeller/BUILD.gn @@ -30,10 +30,6 @@ config("impeller_public_config") { defines += [ "IMPELLER_ENABLE_VULKAN=1" ] } - if (impeller_trace_all_gl_calls) { - defines += [ "IMPELLER_TRACE_ALL_GL_CALLS" ] - } - if (is_win) { defines += [ # TODO(dnfield): https://github.com/flutter/flutter/issues/50053 diff --git a/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h index 44587ae96a..13f6cb5589 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h @@ -85,9 +85,6 @@ struct GLProc { FML_CHECK(IsAvailable()) << "GL function " << name << " is not available. " << "This is likely due to a missing extension."; #endif // IMPELLER_DEBUG -#ifdef IMPELLER_TRACE_ALL_GL_CALLS - TRACE_EVENT0("impeller", name); -#endif // IMPELLER_TRACE_ALL_GL_CALLS return function(std::forward(args)...); } diff --git a/engine/src/flutter/impeller/tools/args.gni b/engine/src/flutter/impeller/tools/args.gni index 70d3c2326d..e40da89ba8 100644 --- a/engine/src/flutter/impeller/tools/args.gni +++ b/engine/src/flutter/impeller/tools/args.gni @@ -20,10 +20,6 @@ declare_args() { impeller_enable_vulkan = (is_linux || is_win || is_android || is_mac || enable_unittests) && target_os != "fuchsia" - # If enabled, all OpenGL calls will be traced. Because additional trace - # overhead may be substantial, this is not enabled by default. - impeller_trace_all_gl_calls = false - # Enable experimental 3D scene rendering. impeller_enable_3d = false }