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

Unified Diff: ui/gl/gl_context_osmesa.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/BUILD.gn ('k') | ui/gl/gl_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_osmesa.cc
diff --git a/ui/gl/gl_context_osmesa.cc b/ui/gl/gl_context_osmesa.cc
index 1f998d8789756dcb0fc2aa423c23f4d7ce0c4751..f63cbce92400effa3dfc856ef0444436f94f7a3a 100644
--- a/ui/gl/gl_context_osmesa.cc
+++ b/ui/gl/gl_context_osmesa.cc
@@ -32,11 +32,11 @@ bool GLContextOSMesa::Initialize(GLSurface* compatible_surface,
share_group() ? share_group()->GetHandle() : nullptr);
GLuint format = 0;
- switch (compatible_surface->GetFormat()) {
- case GLSurface::SURFACE_OSMESA_BGRA:
+ switch (compatible_surface->GetFormat().GetPixelLayout()) {
+ case GLSurfaceFormat::PIXEL_LAYOUT_BGRA:
format = OSMESA_BGRA;
break;
- case GLSurface::SURFACE_OSMESA_RGBA:
+ case GLSurfaceFormat::PIXEL_LAYOUT_RGBA:
format = OSMESA_RGBA;
break;
default:
« no previous file with comments | « ui/gl/BUILD.gn ('k') | ui/gl/gl_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698