Add graphite_renderengine_compile_only to SF flags

This will be used to guard compilation of Graphite in RenderEngine.
Enabling the flag will ONLY compile Graphite, but not enable it. The
debug.renderengine.graphite system property could then be set to true to
enable Graphite in RenderEngine.

The existing graphite_renderengine flag will both compile and enable
Graphite in RenderEngine.

Compilation is gated on a logical inclusive OR of the two flags.

Bug: b/293371537
Bug: b/331678326
Bug: b/341728634
Test: compiles
Change-Id: I4d6408b5e65b8b8862c79086dba2f4ce56a3d179
diff --git a/services/surfaceflinger/common/FlagManager.cpp b/services/surfaceflinger/common/FlagManager.cpp
index b78809a..b7ec6e0 100644
--- a/services/surfaceflinger/common/FlagManager.cpp
+++ b/services/surfaceflinger/common/FlagManager.cpp
@@ -149,6 +149,7 @@
     DUMP_READ_ONLY_FLAG(local_tonemap_screenshots);
     DUMP_READ_ONLY_FLAG(override_trusted_overlay);
     DUMP_READ_ONLY_FLAG(flush_buffer_slots_to_uncache);
+    DUMP_READ_ONLY_FLAG(force_compile_graphite_renderengine);
 
 #undef DUMP_READ_ONLY_FLAG
 #undef DUMP_SERVER_FLAG
@@ -248,6 +249,7 @@
 FLAG_MANAGER_READ_ONLY_FLAG(local_tonemap_screenshots, "debug.sf.local_tonemap_screenshots");
 FLAG_MANAGER_READ_ONLY_FLAG(override_trusted_overlay, "");
 FLAG_MANAGER_READ_ONLY_FLAG(flush_buffer_slots_to_uncache, "");
+FLAG_MANAGER_READ_ONLY_FLAG(force_compile_graphite_renderengine, "");
 
 /// Trunk stable server flags ///
 FLAG_MANAGER_SERVER_FLAG(refresh_rate_overlay_on_external_display, "")