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

Unified Diff: content/common/gpu/media/gles2_texture_to_egl_image_translator.cc

Issue 7200033: Fix crashes when loading gles2.cc on browser startup, and during playback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 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
Index: content/common/gpu/media/gles2_texture_to_egl_image_translator.cc
diff --git a/content/common/gpu/media/gles2_texture_to_egl_image_translator.cc b/content/common/gpu/media/gles2_texture_to_egl_image_translator.cc
index a3049569a14bcebd80bb526658acfe92a3bcb836..057092d7ba54d38fb897a1b01e92b46de715d3f5 100644
--- a/content/common/gpu/media/gles2_texture_to_egl_image_translator.cc
+++ b/content/common/gpu/media/gles2_texture_to_egl_image_translator.cc
@@ -23,6 +23,7 @@ Gles2TextureToEglImageTranslator::Gles2TextureToEglImageTranslator() {
LOG(DFATAL) << "Failed to get EGL extensions";
return;
}
+ CHECK_EQ(eglGetError(), EGL_SUCCESS);
}
@@ -41,7 +42,7 @@ EGLImageKHR Gles2TextureToEglImageTranslator::TranslateToEglImage(
EGL_GL_TEXTURE_2D_KHR,
reinterpret_cast<EGLClientBuffer>(texture),
&attrib);
- CHECK(hEglImage);
+ CHECK(hEglImage) << eglGetError();
return hEglImage;
}

Powered by Google App Engine
This is Rietveld 408576698