Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: ui/gl/gl_version_info.cc

Issue 139013008: Implement support for rendering to 32-bit float textures on ES3 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Make TexSubImage validation agree with TexImage validation Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« gpu/command_buffer/service/gles2_cmd_decoder.cc ('K') | « ui/gl/gl_version_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« gpu/command_buffer/service/gles2_cmd_decoder.cc ('K') | « ui/gl/gl_version_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698