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

Unified Diff: ui/gl/gl_context_egl.cc

Issue 2495813002: Fix inverted if statement in GLContextEGL. (Closed)
Patch Set: Created 4 years, 1 month 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_context_egl.cc
diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
index 1ac7d017dde589d071114432decbee55a72919ae..1cd08cd40496efa08ee512b4dfe85efcc9d69296 100644
--- a/ui/gl/gl_context_egl.cc
+++ b/ui/gl/gl_context_egl.cc
@@ -74,13 +74,13 @@ bool GLContextEGL::Initialize(GLSurface* compatible_surface,
if (GLSurfaceEGL::IsCreateContextRobustnessSupported()) {
DVLOG(1) << "EGL_EXT_create_context_robustness supported.";
+ context_attributes.push_back(
+ EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT);
+ context_attributes.push_back(EGL_LOSE_CONTEXT_ON_RESET_EXT);
} else {
// At some point we should require the presence of the robustness
// extension and remove this code path.
DVLOG(1) << "EGL_EXT_create_context_robustness NOT supported.";
- context_attributes.push_back(
- EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT);
- context_attributes.push_back(EGL_LOSE_CONTEXT_ON_RESET_EXT);
}
if (!eglBindAPI(EGL_OPENGL_ES_API)) {
« 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