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

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

Issue 2253173002: Remove callbacks for SurfaceFactoryOzone::LoadEGLGLES2Bindings(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/x11/x11_surface_factory.cc ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/surface_factory_ozone.h
diff --git a/ui/ozone/public/surface_factory_ozone.h b/ui/ozone/public/surface_factory_ozone.h
index de8d5bd40679309c4db03980cae31887cf76164d..0ace5bfb9cce8036054ee97f209aca2cd4881a74 100644
--- a/ui/ozone/public/surface_factory_ozone.h
+++ b/ui/ozone/public/surface_factory_ozone.h
@@ -61,11 +61,6 @@ class SurfaceOzoneCanvas;
// modes (See comments bellow for descriptions).
class OZONE_BASE_EXPORT SurfaceFactoryOzone {
public:
- typedef void* (*GLGetProcAddressProc)(const char* name);
- typedef base::Callback<void(base::NativeLibrary)> AddGLLibraryCallback;
- typedef base::Callback<void(GLGetProcAddressProc)>
- SetGLGetProcAddressProcCallback;
-
// Returns native platform display handle. This is used to obtain the EGL
// display connection for the native display.
virtual intptr_t GetNativeDisplay();
@@ -97,11 +92,8 @@ class OZONE_BASE_EXPORT SurfaceFactoryOzone {
virtual std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
gfx::AcceleratedWidget widget);
- // Sets up GL bindings for the native surface. Takes two callback parameters
- // that allow Ozone to register the GL bindings.
- virtual bool LoadEGLGLES2Bindings(
- AddGLLibraryCallback add_gl_library,
- SetGLGetProcAddressProcCallback set_gl_get_proc_address) = 0;
+ // Sets up GL bindings for the native surface.
+ virtual bool LoadEGLGLES2Bindings();
// Returns all scanout formats for |widget| representing a particular display
// controller or default display controller for kNullAcceleratedWidget.
« no previous file with comments | « ui/ozone/platform/x11/x11_surface_factory.cc ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698