Silence OpenGLES deprecation warning.

The deprecation warning started to trigger after the iOS deployment
target has been updated from 10 to 12 by
https://webrtc-review.googlesource.com/c/src/+/224543.

This macro was not defined in tests because the relevant bots were
excluded from CQ when that happened.

Bug: webrtc:12928, webrtc:12937
Change-Id: I6e1891c5080b172cbd74649e0a115b25d6c87d56
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/225020
Reviewed-by: Victor Boivie <boivie@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34417}
diff --git a/sdk/BUILD.gn b/sdk/BUILD.gn
index 79b483d..d63f416 100644
--- a/sdk/BUILD.gn
+++ b/sdk/BUILD.gn
@@ -462,6 +462,9 @@
           "OpenGL.framework",
         ]
       }
+
+      # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
+      # workaround.
       defines = [ "GLES_SILENCE_DEPRECATION" ]
 
       deps = [
@@ -500,6 +503,9 @@
           "objc/components/renderer/opengl/RTCEAGLVideoView.h",
           "objc/components/renderer/opengl/RTCEAGLVideoView.m",
         ]
+
+        # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
+        # workaround.
         defines = [ "GLES_SILENCE_DEPRECATION" ]
       }
       if (is_mac) {
@@ -1039,6 +1045,10 @@
             "objc/unittests/nalu_rewriter_xctest.mm",
           ]
 
+          # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
+          # workaround.
+          defines = [ "GLES_SILENCE_DEPRECATION" ]
+
           # TODO(peterhanspers): Reenable these tests on simulator.
           # See bugs.webrtc.org/7812
           if (target_environment != "simulator") {