OSDN Git Service

LibGUI remove DEBUG
authorFabien Sanglard <sanglardf@google.com>
Thu, 22 Jun 2017 18:13:49 +0000 (11:13 -0700)
committerFabien Sanglard <sanglardf@google.com>
Thu, 22 Jun 2017 18:20:10 +0000 (11:20 -0700)
DEBUG_ONLY_CODE flag enables expensive checks such as
BufferQueueCore::validateConsistencyLocked() which when running
represents 15.1% of SurfaceFlinger total runtime. Enabling these
check for "eng" build only make "userdebug" build closer to "user".

Test: Manual
Bug: 62905241
Change-Id: I77065ecf4e62261c3f02b1cad9966d5c4845c639

libs/gui/Android.bp

index 5eafb2c..a07726a 100644 (file)
@@ -57,7 +57,7 @@ cc_library_shared {
         brillo: {
             cflags: ["-DHAVE_NO_SURFACE_FLINGER"],
         },
-        debuggable: {
+        eng: {
             cppflags: [
                 "-UDEBUG_ONLY_CODE",
                 "-DDEBUG_ONLY_CODE=1",