Index: gpu/command_buffer/service/feature_info.cc |
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc |
index 5d6fe743b724312ee2a6d8959516a3416bc03015..64c7222d66c7493f1abe73a2f3b9c21fc6d97638 100644 |
--- a/gpu/command_buffer/service/feature_info.cc |
+++ b/gpu/command_buffer/service/feature_info.cc |
@@ -7,6 +7,7 @@ |
#include "gpu/command_buffer/service/feature_info.h" |
#include "gpu/command_buffer/service/gl_utils.h" |
#include "ui/gfx/gl/gl_implementation.h" |
+#include "ui/gfx/gl/gl_surface.h" |
namespace gpu { |
namespace gles2 { |
@@ -357,6 +358,12 @@ void FeatureInfo::AddFeatures(const char* desired_features) { |
feature_flags_.enable_texture_half_float_linear = |
enable_texture_half_float_linear; |
feature_flags_.npot_ok = npot_ok; |
+ |
+ if (ext.Desire("GL_CHROMIUM_post_sub_buffer") && |
+ gfx::GLSurface::GetCurrent() && |
+ gfx::GLSurface::GetCurrent()->SupportsPostSubBuffer()) { |
+ AddExtensionString("GL_CHROMIUM_post_sub_buffer"); |
+ } |
} |
void FeatureInfo::AddExtensionString(const std::string& str) { |