Add support for ES31 context creation

The dEQP test for context creation passes.

SH_WEBGL3_SPEC has been added, but it should be considered whether we
should keep it, remove it or rename it. It was added so that there is
a webgl mapping to es 310 shaders. Check Compiler.cpp. The bison file
has been modified so that some tokens from es3 can be also used in
es31 as well.

A separate macro ES3_1_ONLY is added so that some tokens are limited
only for es 310 shaders.

BUG=angleproject:1442
TEST=angle_unittests

Change-Id: I2e5ca227c96046c30dc796ab934f3fda9c533eba
Reviewed-on: https://chromium-review.googlesource.com/360300
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/src/tests/gl_tests/IndexedPointsTest.cpp b/src/tests/gl_tests/IndexedPointsTest.cpp
index 5b6be1a..73b16d8 100644
--- a/src/tests/gl_tests/IndexedPointsTest.cpp
+++ b/src/tests/gl_tests/IndexedPointsTest.cpp
@@ -307,7 +307,7 @@
 
 TEST_P(IndexedPointsTestUInt, UnsignedIntOffset0)
 {
-    if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
+    if (getClientMajorVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
     {
         return;
     }
@@ -317,7 +317,7 @@
 
 TEST_P(IndexedPointsTestUInt, UnsignedIntOffset1)
 {
-    if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
+    if (getClientMajorVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
     {
         return;
     }
@@ -327,7 +327,7 @@
 
 TEST_P(IndexedPointsTestUInt, UnsignedIntOffset2)
 {
-    if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
+    if (getClientMajorVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
     {
         return;
     }
@@ -337,7 +337,7 @@
 
 TEST_P(IndexedPointsTestUInt, UnsignedIntOffset3)
 {
-    if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
+    if (getClientMajorVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
     {
         return;
     }
@@ -347,7 +347,7 @@
 
 TEST_P(IndexedPointsTestUInt, VertexWithColorUnsignedIntOffset0)
 {
-    if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
+    if (getClientMajorVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
     {
         return;
     }
@@ -357,7 +357,7 @@
 
 TEST_P(IndexedPointsTestUInt, VertexWithColorUnsignedIntOffset1)
 {
-    if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
+    if (getClientMajorVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
     {
         return;
     }
@@ -367,7 +367,7 @@
 
 TEST_P(IndexedPointsTestUInt, VertexWithColorUnsignedIntOffset2)
 {
-    if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
+    if (getClientMajorVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
     {
         return;
     }
@@ -377,7 +377,7 @@
 
 TEST_P(IndexedPointsTestUInt, VertexWithColorUnsignedIntOffset3)
 {
-    if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
+    if (getClientMajorVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
     {
         return;
     }