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

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 144693003: Remove unused alpha variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing TOT! Created 6 years, 11 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_egl.cc
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
index 95de1118b60412ff4d5a35faa144fedbe3f87ac3..0db2fc72569c60ab0cbe27b0c22cca4ef6b88479 100644
--- a/ui/gl/gl_surface_egl.cc
+++ b/ui/gl/gl_surface_egl.cc
@@ -230,7 +230,7 @@ bool GLSurfaceEGL::InitializeOneOff() {
bool match_found = false;
for (int i = 0; i < num_configs; i++) {
EGLBoolean success;
- EGLint red, green, blue, alpha;
+ EGLint red, green, blue;
// Read the relevent attributes of the EGLConfig.
success = eglGetConfigAttrib(g_display, matching_configs[i],
EGL_RED_SIZE, &red);
@@ -238,8 +238,6 @@ bool GLSurfaceEGL::InitializeOneOff() {
EGL_BLUE_SIZE, &blue);
success &= eglGetConfigAttrib(g_display, matching_configs[i],
EGL_GREEN_SIZE, &green);
- success &= eglGetConfigAttrib(g_display, matching_configs[i],
- EGL_ALPHA_SIZE, &alpha);
if ((success == EGL_TRUE) && (red == 5) &&
(green == 6) && (blue == 5)) {
g_config = matching_configs[i];
« 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