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

Unified Diff: ui/gl/gl_surface_osmesa_win.cc

Issue 2616723002: Refactor GL surface format handling (Closed)
Patch Set: 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
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..57a59f3b13b696ea1e16b067a7399cf322de0c92 100644
--- a/ui/gl/gl_surface_osmesa_win.cc
+++ b/ui/gl/gl_surface_osmesa_win.cc
@@ -26,7 +26,7 @@
namespace gl {
GLSurfaceOSMesaWin::GLSurfaceOSMesaWin(gfx::AcceleratedWidget window)
- : GLSurfaceOSMesa(SURFACE_OSMESA_RGBA, gfx::Size(1, 1)),
+ : GLSurfaceOSMesa(GLSurfaceFormat(SURFACE_OSMESA_RGBA), gfx::Size(1, 1)),
window_(window),
device_context_(NULL) {
DCHECK(window);
@@ -36,7 +36,7 @@ GLSurfaceOSMesaWin::~GLSurfaceOSMesaWin() {
Destroy();
}
-bool GLSurfaceOSMesaWin::Initialize(GLSurface::Format format) {
+bool GLSurfaceOSMesaWin::Initialize(GLSurfaceFormat format) {
if (!GLSurfaceOSMesa::Initialize(format))
return false;

Powered by Google App Engine
This is Rietveld 408576698