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

Unified Diff: ui/gl/gl_surface_mac.cc

Issue 1652873002: Android: Use virtualized context only for those with compatible config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 10 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_egl.cc ('k') | ui/gl/gl_surface_osmesa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_mac.cc
diff --git a/ui/gl/gl_surface_mac.cc b/ui/gl/gl_surface_mac.cc
index 36a26e87ab8a51f23a6f94aaf4a50eee227e478b..7e7d5c9b8a2192bf1ce2f0d020bc20e247ae787b 100644
--- a/ui/gl/gl_surface_mac.cc
+++ b/ui/gl/gl_surface_mac.cc
@@ -133,14 +133,13 @@ scoped_refptr<GLSurface> GLSurface::CreateViewGLSurface(
}
scoped_refptr<GLSurface> GLSurface::CreateOffscreenGLSurface(
- const gfx::Size& size,
- GLSurface::Format format) {
+ const gfx::Size& size) {
TRACE_EVENT0("gpu", "GLSurface::CreateOffscreenGLSurface");
switch (GetGLImplementation()) {
case kGLImplementationOSMesaGL: {
scoped_refptr<GLSurface> surface(
- new GLSurfaceOSMesa(OSMesaSurfaceFormatRGBA, size));
- if (!surface->Initialize(format))
+ new GLSurfaceOSMesa(SURFACE_OSMESA_RGBA, size));
+ if (!surface->Initialize())
return NULL;
return surface;
@@ -149,7 +148,7 @@ scoped_refptr<GLSurface> GLSurface::CreateOffscreenGLSurface(
case kGLImplementationDesktopGLCoreProfile:
case kGLImplementationAppleGL: {
scoped_refptr<GLSurface> surface(new NoOpGLSurface(size));
- if (!surface->Initialize(format))
+ if (!surface->Initialize())
return NULL;
return surface;
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | ui/gl/gl_surface_osmesa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698