Index: ui/gl/gl_context.h |
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h |
index c5d517690fd5a8e0a14cac80a0bed019f91f5c4c..702a0da38aa1299cd268266d4e4240f3bb0a7661 100644 |
--- a/ui/gl/gl_context.h |
+++ b/ui/gl/gl_context.h |
@@ -198,6 +198,14 @@ class GL_EXPORT GLContextReal : public GLContext { |
DISALLOW_COPY_AND_ASSIGN(GLContextReal); |
}; |
+// Wraps GLContext in scoped_refptr and tries to initializes it. Returns a |
+// scoped_refptr containing the initialized GLContext or nullptr if |
+// initialization fails. |
+GL_EXPORT scoped_refptr<GLContext> InitializeGLContext( |
+ GLContext* raw_context, |
piman
2016/06/03 20:37:25
nit: since your're taking (and returning) a refere
kylechar
2016/06/07 14:43:43
Done.
|
+ GLSurface* compatible_surface, |
+ GpuPreference gpu_preference); |
+ |
} // namespace gl |
#endif // UI_GL_GL_CONTEXT_H_ |