Fork: Disable GLSL translator

Android webview is single-process and does not have webgl enabled, so
does not gain any security benefits from this.

BUG: 13635247
Change-Id: Ia3b67a4a90ef057f243fc5ed5e747a94df4d1300
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index 32d126f..6720166 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -25,6 +25,7 @@
 #include "content/public/browser/browser_thread.h"
 #include "content/public/common/content_switches.h"
 #include "gpu/command_buffer/client/gl_in_process_context.h"
+#include "gpu/command_buffer/service/gpu_switches.h"
 #include "gpu/command_buffer/service/in_process_command_buffer.h"
 #include "media/base/media_switches.h"
 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h"
@@ -59,6 +60,9 @@
   cl->AppendSwitch(switches::kEnableBeginFrameScheduling);
   cl->AppendSwitch(cc::switches::kEnableMapImage);
 
+  // Disable GLSL translator. Webview is single-process so has no benefit.
+  cl->AppendSwitch(switches::kDisableGLSLTranslator);
+
   // WebView uses the Android system's scrollbars and overscroll glow.
   cl->AppendSwitch(switches::kHideScrollbars);
   cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect);