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

Unified Diff: ui/ozone/public/surface_factory_ozone.cc

Issue 2270463002: Add OzoneGLImpl interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 3 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/ozone/public/surface_factory_ozone.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/surface_factory_ozone.cc
diff --git a/ui/ozone/public/surface_factory_ozone.cc b/ui/ozone/public/surface_factory_ozone.cc
index 8031177854e24175b63274c14f2c4b5a398fe3a1..98d51a5a5edbd72b10d1d091a503d31c4490277a 100644
--- a/ui/ozone/public/surface_factory_ozone.cc
+++ b/ui/ozone/public/surface_factory_ozone.cc
@@ -16,6 +16,20 @@ SurfaceFactoryOzone::SurfaceFactoryOzone() {}
SurfaceFactoryOzone::~SurfaceFactoryOzone() {}
+std::vector<gl::GLImplementation>
+SurfaceFactoryOzone::GetAllowedGLImplementations() {
+ std::vector<gl::GLImplementation> impls;
+ // TODO(kylechar): Remove EGL from this list once every Ozone platform that
+ // uses EGL overrides this method.
+ impls.push_back(gl::kGLImplementationEGLGLES2);
+ impls.push_back(gl::kGLImplementationOSMesaGL);
+ return impls;
+}
+
+GLOzone* SurfaceFactoryOzone::GetGLOzone(gl::GLImplementation implemenation) {
+ return nullptr;
+}
+
intptr_t SurfaceFactoryOzone::GetNativeDisplay() {
return 0;
}
« no previous file with comments | « ui/ozone/public/surface_factory_ozone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698