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

Unified Diff: ui/ozone/demo/ozone_demo.cc

Issue 2351253002: Ozone Demo: Fix NOTREACHED assert when SwapBuffersAsync is not supported (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/demo/ozone_demo.cc
diff --git a/ui/ozone/demo/ozone_demo.cc b/ui/ozone/demo/ozone_demo.cc
index 7ae189c3c0bb2613e6ae963711aaf124772c5cf3..bbfeff49bb96bd54dcc6a70cba85154ba30a38ab 100644
--- a/ui/ozone/demo/ozone_demo.cc
+++ b/ui/ozone/demo/ozone_demo.cc
@@ -217,6 +217,8 @@ std::unique_ptr<ui::Renderer> RendererFactory::CreateRenderer(
scoped_refptr<gl::GLSurface> surface = CreateGLSurface(widget);
if (!surface)
LOG(FATAL) << "Failed to create GL surface";
+ if (!surface->SupportsAsyncSwap())
+ LOG(FATAL) << "GL surface must support SwapBuffersAsync";
if (surface->IsSurfaceless())
return base::MakeUnique<ui::SurfacelessGlRenderer>(widget, surface,
size);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698