| Index: ui/gl/gl_context.cc
|
| diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc
|
| index faf1270cfbee4329e1ef11cdde1990993d1004f5..46d566e42ea4e323a8daf7a19994adb744bbb83f 100644
|
| --- a/ui/gl/gl_context.cc
|
| +++ b/ui/gl/gl_context.cc
|
| @@ -230,4 +230,12 @@ void GLContextReal::SetCurrent(GLSurface* surface) {
|
| current_real_context_.Pointer()->Set(surface ? this : nullptr);
|
| }
|
|
|
| +scoped_refptr<GLContext> InitializeGLContext(scoped_refptr<GLContext> context,
|
| + GLSurface* compatible_surface,
|
| + GpuPreference gpu_preference) {
|
| + if (!context->Initialize(compatible_surface, gpu_preference))
|
| + return nullptr;
|
| + return context;
|
| +}
|
| +
|
| } // namespace gl
|
|
|