Index: src/gpu/gl/GrGLUtil.cpp |
diff --git a/src/gpu/gl/GrGLUtil.cpp b/src/gpu/gl/GrGLUtil.cpp |
index 0a71a1d4ac15736a326f1aef72d15918b358fa7a..34276e2c405e43fc296a889d867c069f599dca6e 100644 |
--- a/src/gpu/gl/GrGLUtil.cpp |
+++ b/src/gpu/gl/GrGLUtil.cpp |
@@ -147,6 +147,15 @@ void GrGLGetDriverInfo(GrGLStandard standard, |
*outVersion = GR_GL_DRIVER_VER(driverMajor, driverMinor); |
return; |
} |
+ if (0 == strncmp("ANGLE", rendererString, 5)) { |
+ *outDriver = kANGLE_GrGLDriver; |
+ n = sscanf(versionString, "OpenGL ES %d.%d (ANGLE %d.%d", &major, &minor, &driverMajor, |
+ &driverMinor); |
+ if (4 == n) { |
+ *outVersion = GR_GL_DRIVER_VER(driverMajor, driverMinor); |
+ } |
+ return; |
+ } |
} |
if (kIntel_GrGLVendor == vendor) { |