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

Unified Diff: ui/gl/gl_surface_egl.h

Issue 2616723002: Refactor GL surface format handling (Closed)
Patch Set: Fix copyright notice on new files Created 3 years, 11 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.cc ('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 dc000eba2e385d0eabca82f6048941c79472cdd5..6e003f88c4839b1efee3470fc474a7bfd7e3af66 100644
--- a/ui/gl/gl_surface_egl.h
+++ b/ui/gl/gl_surface_egl.h
@@ -75,7 +75,7 @@ class GL_EXPORT GLSurfaceEGL : public GLSurface {
// Implement GLSurface.
EGLDisplay GetDisplay() override;
EGLConfig GetConfig() override;
- GLSurface::Format GetFormat() override;
+ GLSurfaceFormat GetFormat() override;
static bool InitializeOneOff(EGLNativeDisplayType native_display);
static void ShutdownOneOff();
@@ -98,7 +98,7 @@ class GL_EXPORT GLSurfaceEGL : public GLSurface {
~GLSurfaceEGL() override;
EGLConfig config_ = nullptr;
- GLSurface::Format format_ = GLSurface::SURFACE_DEFAULT;
+ GLSurfaceFormat format_;
private:
DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL);
@@ -112,7 +112,7 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
// Implement GLSurface.
using GLSurfaceEGL::Initialize;
- bool Initialize(GLSurface::Format format) override;
+ bool Initialize(GLSurfaceFormat format) override;
void Destroy() override;
bool Resize(const gfx::Size& size,
float scale_factor,
@@ -191,8 +191,7 @@ class GL_EXPORT PbufferGLSurfaceEGL : public GLSurfaceEGL {
explicit PbufferGLSurfaceEGL(const gfx::Size& size);
// Implement GLSurface.
- bool Initialize() override;
- bool Initialize(GLSurface::Format format) override;
+ bool Initialize(GLSurfaceFormat format) override;
void Destroy() override;
bool IsOffscreen() override;
gfx::SwapResult SwapBuffers() override;
@@ -221,8 +220,7 @@ class GL_EXPORT SurfacelessEGL : public GLSurfaceEGL {
explicit SurfacelessEGL(const gfx::Size& size);
// Implement GLSurface.
- bool Initialize() override;
- bool Initialize(GLSurface::Format format) override;
+ bool Initialize(GLSurfaceFormat format) override;
void Destroy() override;
bool IsOffscreen() override;
bool IsSurfaceless() const override;
« no previous file with comments | « ui/gl/gl_surface.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698