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

Unified Diff: media/gpu/generic_v4l2_device.cc

Issue 2335573002: V4L2VideoDecodeAccelerator: destroy buffers in decoder thread. (Closed)
Patch Set: address Pawel's nits in PS4 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 | media/gpu/v4l2_video_decode_accelerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/generic_v4l2_device.cc
diff --git a/media/gpu/generic_v4l2_device.cc b/media/gpu/generic_v4l2_device.cc
index 48ee5212e1fd7ebce090aa4652510e4e2fbc6ac4..c7d94904a1d3709050d405bd091a1c5774dbc7bc 100644
--- a/media/gpu/generic_v4l2_device.cc
+++ b/media/gpu/generic_v4l2_device.cc
@@ -296,7 +296,11 @@ EGLImageKHR GenericV4L2Device::CreateEGLImage(
EGLBoolean GenericV4L2Device::DestroyEGLImage(EGLDisplay egl_display,
EGLImageKHR egl_image) {
- return eglDestroyImageKHR(egl_display, egl_image);
+ EGLBoolean result = eglDestroyImageKHR(egl_display, egl_image);
+ if (result != EGL_TRUE) {
+ LOG(WARNING) << "Destroy EGLImage failed.";
+ }
+ return result;
}
GLenum GenericV4L2Device::GetTextureTarget() {
« no previous file with comments | « no previous file | media/gpu/v4l2_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698