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

Unified Diff: ui/gl/gl_version_info.h

Issue 2098913002: GLVersionInfo: alse detect es3 support with extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix references to IsES3Capable Created 4 years, 6 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
« no previous file with comments | « gpu/command_buffer/service/test_helper.cc ('k') | ui/gl/gl_version_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_version_info.h
diff --git a/ui/gl/gl_version_info.h b/ui/gl/gl_version_info.h
index c4c39a65011d3620eb346595db80fda8818c0a9d..2c775f8e0554b187a14200df201594f1388cd49e 100644
--- a/ui/gl/gl_version_info.h
+++ b/ui/gl/gl_version_info.h
@@ -39,18 +39,6 @@ struct GL_EXPORT GLVersionInfo {
return is_es || is_desktop_core_profile;
}
- bool IsES3Capable() const {
- if (IsAtLeastGLES(3, 0) || IsAtLeastGL(4, 2))
- return true;
-#if defined(OS_MACOSX)
- // TODO(zmo): For experimentation purpose on MacOSX with core profile,
- // allow 3.2 or plus for now.
- if (IsAtLeastGL(3, 2))
- return true;
-#endif
- return false;
- }
-
static void ParseVersionString(const char* version_str,
unsigned* major_version,
unsigned* minor_version,
@@ -65,9 +53,14 @@ struct GL_EXPORT GLVersionInfo {
bool is_es2;
bool is_es3;
bool is_desktop_core_profile;
+ bool is_es3_capable;
private:
- GLVersionInfo(const char* version_str, const char* renderer_str);
+ GLVersionInfo();
+ void Initialize(const char* version_str,
+ const char* renderer_str,
+ const std::set<std::string>& extensions);
+ bool IsES3Capable(const std::set<std::string>& extensions) const;
DISALLOW_COPY_AND_ASSIGN(GLVersionInfo);
};
« no previous file with comments | « gpu/command_buffer/service/test_helper.cc ('k') | ui/gl/gl_version_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698