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

Unified Diff: ui/gl/gl_surface_osmesa_win.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_win.h ('k') | ui/gl/gl_surface_osmesa_x11.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_osmesa_win.cc
diff --git a/ui/gl/gl_surface_osmesa_win.cc b/ui/gl/gl_surface_osmesa_win.cc
index b65e46c32375ad8ee6454af2ffccf64c3546fbf5..4e13201eca226f20b509dd6cc8e64f461cbb972a 100644
--- a/ui/gl/gl_surface_osmesa_win.cc
+++ b/ui/gl/gl_surface_osmesa_win.cc
@@ -26,7 +26,8 @@
namespace gl {
GLSurfaceOSMesaWin::GLSurfaceOSMesaWin(gfx::AcceleratedWidget window)
- : GLSurfaceOSMesa(SURFACE_OSMESA_RGBA, gfx::Size(1, 1)),
+ : GLSurfaceOSMesa(GLSurfaceFormat(GLSurfaceFormat::PIXEL_LAYOUT_RGBA),
+ gfx::Size(1, 1)),
window_(window),
device_context_(NULL) {
DCHECK(window);
@@ -36,7 +37,7 @@ GLSurfaceOSMesaWin::~GLSurfaceOSMesaWin() {
Destroy();
}
-bool GLSurfaceOSMesaWin::Initialize(GLSurface::Format format) {
+bool GLSurfaceOSMesaWin::Initialize(GLSurfaceFormat format) {
if (!GLSurfaceOSMesa::Initialize(format))
return false;
« no previous file with comments | « ui/gl/gl_surface_osmesa_win.h ('k') | ui/gl/gl_surface_osmesa_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698