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

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 7980034: Make OSMesa GL implementation advertise supported functionality as ES2 extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « no previous file | ui/gfx/gl/gl_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
===================================================================
--- gpu/command_buffer/service/feature_info.cc (revision 102100)
+++ gpu/command_buffer/service/feature_info.cc (working copy)
@@ -232,8 +232,7 @@
}
if (ext.Desire("GL_OES_rgb8_rgba8")) {
- if (ext.Have("GL_OES_rgb8_rgba8") ||
- gfx::GetGLImplementation() == gfx::kGLImplementationDesktopGL) {
+ if (ext.Have("GL_OES_rgb8_rgba8") || gfx::HasDesktopGLFeatures()) {
AddExtensionString("GL_OES_rgb8_rgba8");
validators_.render_buffer_format.AddValue(GL_RGB8_OES);
validators_.render_buffer_format.AddValue(GL_RGBA8_OES);
@@ -316,14 +315,13 @@
}
if (ext.HaveAndDesire("GL_OES_depth24") ||
- (gfx::GetGLImplementation() == gfx::kGLImplementationDesktopGL &&
- ext.Desire("GL_OES_depth24"))) {
+ (gfx::HasDesktopGLFeatures() && ext.Desire("GL_OES_depth24"))) {
AddExtensionString("GL_OES_depth24");
validators_.render_buffer_format.AddValue(GL_DEPTH_COMPONENT24);
}
if (ext.HaveAndDesire("GL_OES_standard_derivatives") ||
- (gfx::GetGLImplementation() == gfx::kGLImplementationDesktopGL &&
+ (gfx::HasDesktopGLFeatures() &&
ext.Desire("GL_OES_standard_derivatives"))) {
AddExtensionString("GL_OES_standard_derivatives");
feature_flags_.oes_standard_derivatives = true;
« no previous file with comments | « no previous file | ui/gfx/gl/gl_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698