| Index: ui/gl/gl_surface.cc
|
| diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
|
| index 24c882a9bb429a954881d5e3ba75de7f3c3717fb..6d10b72d63d2f883211fc48d2ca2eda9dfcfb1e8 100644
|
| --- a/ui/gl/gl_surface.cc
|
| +++ b/ui/gl/gl_surface.cc
|
| @@ -333,4 +333,10 @@ bool GLSurfaceAdapter::BuffersFlipped() const {
|
|
|
| GLSurfaceAdapter::~GLSurfaceAdapter() {}
|
|
|
| +scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) {
|
| + if (!surface->Initialize())
|
| + return nullptr;
|
| + return surface;
|
| +}
|
| +
|
| } // namespace gl
|
|
|