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

Unified Diff: ui/gl/gl_surface_egl.h

Issue 1738973004: Fix EGL configs with GLSurfaceOzoneSurfaceless. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added format SURFACE_SURFACELESS. Created 4 years, 9 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_surface.h ('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 9eb3d4168481591dcdcd6f51cbe5a2478b0e7ee5..8bcf6a9c64dd6f117a76b1da754abee1c449f897 100644
--- a/ui/gl/gl_surface_egl.h
+++ b/ui/gl/gl_surface_egl.h
@@ -71,8 +71,8 @@ class GL_EXPORT GLSurfaceEGL : public GLSurface {
protected:
~GLSurfaceEGL() override;
- EGLConfig config_;
- GLSurface::Format format_;
+ EGLConfig config_ = nullptr;
+ GLSurface::Format format_ = GLSurface::SURFACE_DEFAULT;
private:
DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL);
@@ -187,6 +187,7 @@ class GL_EXPORT SurfacelessEGL : public GLSurfaceEGL {
explicit SurfacelessEGL(const gfx::Size& size);
// Implement GLSurface.
+ bool Initialize() override;
bool Initialize(GLSurface::Format format) override;
void Destroy() override;
bool IsOffscreen() override;
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698