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

Unified Diff: ui/ozone/platform/egltest/ozone_platform_egltest.cc

Issue 750593003: Ozone X11 platform Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup leftover stuff Created 6 years 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/ozone/platform/dri/gbm_surface_factory.cc ('k') | ui/ozone/platform/x11/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/egltest/ozone_platform_egltest.cc
diff --git a/ui/ozone/platform/egltest/ozone_platform_egltest.cc b/ui/ozone/platform/egltest/ozone_platform_egltest.cc
index d6d0850e5e072da8db101e26ec19f302139f5d1d..d9381833c71dfa7201ec3092e7bcf57e5e962e22 100644
--- a/ui/ozone/platform/egltest/ozone_platform_egltest.cc
+++ b/ui/ozone/platform/egltest/ozone_platform_egltest.cc
@@ -235,7 +235,9 @@ class SurfaceFactoryEgltest : public ui::SurfaceFactoryOzone {
intptr_t GetNativeDisplay() override;
scoped_ptr<SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
gfx::AcceleratedWidget widget) override;
- const int32* GetEGLSurfaceProperties(const int32* desired_list) override;
+ void* /* EGLConfig */ GetEGLSurfaceConfig(const EglConfigInfo& egl,
+ SurfaceOzoneEGL* surface) override;
+
bool LoadEGLGLES2Bindings(
AddGLLibraryCallback add_gl_library,
SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
@@ -269,14 +271,14 @@ bool SurfaceFactoryEgltest::LoadEGLGLES2Bindings(
egl_soname, gles_soname);
}
-const int32* SurfaceFactoryEgltest::GetEGLSurfaceProperties(
- const int32* desired_list) {
+void* SurfaceFactoryEgltest::GetEGLSurfaceConfig(const EglConfigInfo& egl,
+ SurfaceOzoneEGL* surface) {
static const int32 broken_props[] = {
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_SURFACE_TYPE, EGL_WINDOW_BIT | EGL_PBUFFER_BIT,
EGL_NONE,
};
- return broken_props;
+ return ChooseEGLConfig(egl, broken_props);
}
// Test platform for EGL.
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface_factory.cc ('k') | ui/ozone/platform/x11/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698