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

Unified Diff: ui/gl/init/gl_factory_ozone.cc

Issue 2764853002: gl: Remove redundant methods/variables from GLSurfaceFormat (Closed)
Patch Set: Created 3 years, 9 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_format_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ui/gl/gl_surface_format_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698