[third_party] Restrict libpng visibility to existing users

It's old code from 2016 and should probably be refreshed before we allow
it to be used in more places.

Bug: 77808
Change-Id: I09747f4adff38eb13f356911f6d68445fcc6a660
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/libpng/+/537021
Reviewed-by: Bryan Henry <bryanhenry@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 8a3dee0..353b600 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -72,4 +72,13 @@
   public_configs = [ ":libpng_config" ]
   public_deps = [ "//third_party/zlib" ]
   configs += [ ":clang_warnings" ]
+
+  # TODO(fxbug.dev/77808): pull new code for libpng before we allow it to be
+  # used in more places.
+  visiblity = [
+    "//src/camera/bin/factory/*",
+    "//src/ui/tools/gltf_export/*",
+    "//src/ui/examples/frame-compression/*",
+    "//src/developer/forensics/feedback_data/*",
+  ]
 }