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

Unified Diff: ui/gl/gl_surface_egl.h

Issue 2136553002: Remove GetPlatformDefaultEGLNativeDisplay() function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back to original. 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
« no previous file with comments | « ui/gl/gl_egl_api_implementation.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..12635e6a4dfd6c022838dbadfe7e3c863dd6d58e 100644
--- a/ui/gl/gl_surface_egl.h
+++ b/ui/gl/gl_surface_egl.h
@@ -11,6 +11,7 @@
#include <memory>
#include <string>
+#include <vector>
#include "base/command_line.h"
#include "base/compiler_specific.h"
@@ -26,9 +27,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,9 +55,9 @@ class GL_EXPORT GLSurfaceEGL : public GLSurface {
EGLConfig GetConfig() override;
GLSurface::Format GetFormat() override;
- static bool InitializeOneOff();
+ static bool InitializeOneOff(EGLNativeDisplayType native_display);
static EGLDisplay GetHardwareDisplay();
- static EGLDisplay InitializeDisplay();
+ static EGLDisplay InitializeDisplay(EGLNativeDisplayType native_display);
static EGLNativeDisplayType GetNativeDisplay();
// These aren't particularly tied to surfaces, but since we already
« no previous file with comments | « ui/gl/gl_egl_api_implementation.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698