Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1558)

Unified Diff: ui/gl/gl_surface_egl.h

Issue 2102443003: Break //ui/gl/ dependency on //ui/ozone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gl_bindings
Patch Set: GYP again. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698