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

Unified Diff: ui/gl/gl_surface_android.cc

Issue 1165893002: Don’t claim success in GLSurface::InitializeOneOffInternal if the requested implementation type is … (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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/gl/gl_surface_android.cc
diff --git a/ui/gl/gl_surface_android.cc b/ui/gl/gl_surface_android.cc
index 1254da225bdcbed21d6fe76091e5bb6087099317..e87e9a8a1b9e97c65f02dce0e831d76ad66139ed 100644
--- a/ui/gl/gl_surface_android.cc
+++ b/ui/gl/gl_surface_android.cc
@@ -17,14 +17,19 @@ namespace gfx {
// static
bool GLSurface::InitializeOneOffInternal() {
- switch (GetGLImplementation()) {
+ auto implementation = GetGLImplementation();
abarth-chromium 2015/06/03 21:55:06 It's not clear to me whether |auto| is a good type
+ switch (implementation) {
case kGLImplementationEGLGLES2:
if (!GLSurfaceEGL::InitializeOneOff()) {
LOG(ERROR) << "GLSurfaceEGL::InitializeOneOff failed.";
return false;
}
- default:
break;
+ default:
+ LOG(ERROR)
+ << "Unknown GL implementation returned from GetGLImplementation: "
+ << implementation;
+ return false;
}
return true;
}
« 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