Index: ui/gl/gl_surface_egl.h |
diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h |
index b95508f590fa9a9117d9e33b79a15b8ca93022c3..4f67c9ece308275d3a606f40aa340f596e54b997 100644 |
--- a/ui/gl/gl_surface_egl.h |
+++ b/ui/gl/gl_surface_egl.h |
@@ -26,9 +26,6 @@ |
namespace gl { |
-// Get default EGL display for GLSurfaceEGL (differs by platform). |
-EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay(); |
- |
// If adding a new type, also add it to EGLDisplayType in |
// tools/metrics/histograms/histograms.xml. Don't remove or reorder entries. |
enum DisplayType { |
@@ -57,6 +54,10 @@ class GL_EXPORT GLSurfaceEGL : public GLSurface { |
EGLConfig GetConfig() override; |
GLSurface::Format GetFormat() override; |
+ // Sets the native display for EGL. Should be set before calling |
+ // InitializeOneOff() or InitializeDisplay(). |
+ static void SetNativeDisplay(EGLNativeDisplayType native_display); |
piman
2016/07/06 21:02:16
Could we instead pass the native display explicitl
kylechar
2016/07/07 13:18:05
The problem with doing that is DriverEGL::GetPlatf
piman
2016/07/07 20:37:17
So, unless I'm reading things incorrectly, it look
kylechar
2016/07/08 15:55:05
Yep, I totally missed that. Good catch. I've imple
|
+ |
static bool InitializeOneOff(); |
static EGLDisplay GetHardwareDisplay(); |
static EGLDisplay InitializeDisplay(); |