Index: ui/gl/gl_surface.cc |
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc |
index b51d7478cd76c9542fc3f2eda8d5258a282f3cb6..a05eae85e3de3d4fc7afd0a64123bd80a9c28eec 100644 |
--- a/ui/gl/gl_surface.cc |
+++ b/ui/gl/gl_surface.cc |
@@ -160,6 +160,19 @@ void GLSurface::SetCurrent(GLSurface* surface) { |
current_surface_.Pointer()->Set(surface); |
} |
+bool GLSurface::ExtensionsContain(const char* c_extensions, const char* name) { |
+ DCHECK(name); |
+ if (!c_extensions) |
+ return false; |
+ std::string extensions(c_extensions); |
+ extensions += " "; |
+ |
+ std::string delimited_name(name); |
+ delimited_name += " "; |
+ |
+ return extensions.find(delimited_name) != std::string::npos; |
+} |
+ |
GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} |
bool GLSurfaceAdapter::Initialize() { |