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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_surface_factory.cc

Issue 2926423002: ozone: Allow using swiftshader with --use-gl=swiftshader. (Closed)
Patch Set: . Created 3 years, 6 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/platform/cast/gl_ozone_egl_cast.cc ('k') | ui/ozone/platform/wayland/wayland_surface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
diff --git a/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc b/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
index 5de359df17bd332362167d3a102680ba44e9ca5b..7560a33d7593a6b39a27ce9389a479272acc2ee1 100644
--- a/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
@@ -64,7 +64,9 @@ class GLOzoneEGLGbm : public GLOzoneEGL {
protected:
intptr_t GetNativeDisplay() override { return EGL_DEFAULT_DISPLAY; }
- bool LoadGLES2Bindings() override { return LoadDefaultEGLGLES2Bindings(); }
+ bool LoadGLES2Bindings(gl::GLImplementation impl) override {
+ return LoadDefaultEGLGLES2Bindings(impl);
+ }
private:
GbmSurfaceFactory* surface_factory_;
@@ -108,7 +110,8 @@ std::vector<gl::GLImplementation>
GbmSurfaceFactory::GetAllowedGLImplementations() {
DCHECK(thread_checker_.CalledOnValidThread());
return std::vector<gl::GLImplementation>{gl::kGLImplementationEGLGLES2,
- gl::kGLImplementationOSMesaGL};
+ gl::kGLImplementationOSMesaGL,
+ gl::kGLImplementationSwiftShaderGL};
}
GLOzone* GbmSurfaceFactory::GetGLOzone(gl::GLImplementation implementation) {
« no previous file with comments | « ui/ozone/platform/cast/gl_ozone_egl_cast.cc ('k') | ui/ozone/platform/wayland/wayland_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698