Chromium Code Reviews| Index: ui/gl/init/gl_factory_ozone.cc |
| diff --git a/ui/gl/init/gl_factory_ozone.cc b/ui/gl/init/gl_factory_ozone.cc |
| index 9bd31ebc725621b53df42ebeed4bf6a9af75f62f..1e997a81fbce6560777ec45fb1c63a3a8d556519 100644 |
| --- a/ui/gl/init/gl_factory_ozone.cc |
| +++ b/ui/gl/init/gl_factory_ozone.cc |
| @@ -85,11 +85,6 @@ scoped_refptr<GLSurface> CreateOffscreenGLSurfaceWithFormat( |
| const gfx::Size& size, GLSurfaceFormat format) { |
| TRACE_EVENT0("gpu", "gl::init::CreateOffscreenGLSurface"); |
| - if (!format.IsDefault()) { |
| - NOTREACHED() << "FATAL: Ozone only supports default-format surfaces."; |
| - return nullptr; |
| - } |
|
piman
2017/03/22 21:31:36
Is it ok to remove this check? Why?
klausw
2017/03/22 21:49:21
Removing the check is *not* ok, we have a currentl
piman
2017/03/22 21:59:35
Meh. Default-constructing a GLSurfaceFormat on the
Chandan
2017/03/23 12:34:27
Uploaded patch set 2 with format.IsCompatible(GLSu
|
| - |
| if (HasGLOzone()) |
| return GetGLOzone()->CreateOffscreenGLSurface(size); |