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

Unified Diff: ui/gl/gl_surface_osmesa_x11.cc

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.h ('k') | ui/gl/gl_surface_wgl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_osmesa_x11.cc
diff --git a/ui/gl/gl_surface_osmesa_x11.cc b/ui/gl/gl_surface_osmesa_x11.cc
index c2f018ccf968cd9822be1fbffe759ee5694d0689..62141cdfae2a1a3a06a2d9aa3e2ea23124c991c7 100644
--- a/ui/gl/gl_surface_osmesa_x11.cc
+++ b/ui/gl/gl_surface_osmesa_x11.cc
@@ -16,7 +16,9 @@
namespace gl {
GLSurfaceOSMesaX11::GLSurfaceOSMesaX11(gfx::AcceleratedWidget window)
- : GLSurfaceOSMesa(SURFACE_OSMESA_BGRA, gfx::Size(1, 1)),
+ : GLSurfaceOSMesa(
+ GLSurfaceFormat(GLSurfaceFormat::PIXEL_LAYOUT_BGRA),
+ gfx::Size(1, 1)),
xdisplay_(gfx::GetXDisplay()),
window_graphics_context_(0),
window_(window),
@@ -41,7 +43,7 @@ bool GLSurfaceOSMesaX11::InitializeOneOff() {
return true;
}
-bool GLSurfaceOSMesaX11::Initialize(GLSurface::Format format) {
+bool GLSurfaceOSMesaX11::Initialize(GLSurfaceFormat format) {
if (!GLSurfaceOSMesa::Initialize(format))
return false;
« no previous file with comments | « ui/gl/gl_surface_osmesa_x11.h ('k') | ui/gl/gl_surface_wgl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698