| Index: ui/gl/gl_version_info.cc
|
| diff --git a/ui/gl/gl_version_info.cc b/ui/gl/gl_version_info.cc
|
| index a45219a11e762d7185fc55393e1cac49355a6458..996c44f22cf4fd8c9c5b85c5abb3dd5574adb757 100644
|
| --- a/ui/gl/gl_version_info.cc
|
| +++ b/ui/gl/gl_version_info.cc
|
| @@ -8,7 +8,7 @@
|
|
|
| namespace gfx {
|
|
|
| -GLVersionInfo::GLVersionInfo(const char* version_str)
|
| +GLVersionInfo::GLVersionInfo(const char* version_str, const char* renderer_str)
|
| : is_es(false),
|
| is_es1(false),
|
| is_es2(false),
|
| @@ -16,7 +16,8 @@ GLVersionInfo::GLVersionInfo(const char* version_str)
|
| is_gl1(false),
|
| is_gl2(false),
|
| is_gl3(false),
|
| - is_gl4(false) {
|
| + is_gl4(false),
|
| + is_angle(false) {
|
| if (version_str) {
|
| std::string lstr(StringToLowerASCII(std::string(version_str)));
|
| is_es = (lstr.substr(0, 9) == "opengl es");
|
| @@ -33,6 +34,9 @@ GLVersionInfo::GLVersionInfo(const char* version_str)
|
| is_gl1 = !is_gl2 && !is_gl3 && !is_gl4;
|
| }
|
| }
|
| + if (renderer_str) {
|
| + is_angle = StartsWithASCII(renderer_str, "ANGLE", true);
|
| + }
|
| }
|
|
|
| } // namespace gfx
|
|
|