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

Unified Diff: ui/gl/gl_surface_wgl.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_osmesa_x11.cc ('k') | ui/gl/gl_surface_wgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_wgl.h
diff --git a/ui/gl/gl_surface_wgl.h b/ui/gl/gl_surface_wgl.h
index c68f1a7371bf1bd42696335ed3915ce4dcf8c236..25990dff49871bafdcb98afddfba75406647cf13 100644
--- a/ui/gl/gl_surface_wgl.h
+++ b/ui/gl/gl_surface_wgl.h
@@ -37,7 +37,7 @@ class GL_EXPORT NativeViewGLSurfaceWGL : public GLSurfaceWGL {
explicit NativeViewGLSurfaceWGL(gfx::AcceleratedWidget window);
// Implement GLSurface.
- bool Initialize(GLSurface::Format format) override;
+ bool Initialize(GLSurfaceFormat format) override;
void Destroy() override;
bool Resize(const gfx::Size& size,
float scale_factor,
@@ -51,7 +51,7 @@ class GL_EXPORT NativeViewGLSurfaceWGL : public GLSurfaceWGL {
private:
~NativeViewGLSurfaceWGL() override;
- GLSurface::Format format_ = GLSurface::SURFACE_DEFAULT;
+ GLSurfaceFormat format_;
gfx::AcceleratedWidget window_;
gfx::AcceleratedWidget child_window_;
@@ -67,7 +67,7 @@ class GL_EXPORT PbufferGLSurfaceWGL : public GLSurfaceWGL {
explicit PbufferGLSurfaceWGL(const gfx::Size& size);
// Implement GLSurface.
- bool Initialize(GLSurface::Format format) override;
+ bool Initialize(GLSurfaceFormat format) override;
void Destroy() override;
bool IsOffscreen() override;
gfx::SwapResult SwapBuffers() override;
« no previous file with comments | « ui/gl/gl_surface_osmesa_x11.cc ('k') | ui/gl/gl_surface_wgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698