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

Side by Side Diff: content/common/gpu/media/exynos_video_decode_accelerator.cc

Issue 17846008: Fix yet another instance of scoped_ptr<T>(NULL) on ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <dlfcn.h> 5 #include <dlfcn.h>
6 #include <errno.h> 6 #include <errno.h>
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <linux/videodev2.h> 8 #include <linux/videodev2.h>
9 #include <poll.h> 9 #include <poll.h>
10 #include <sys/eventfd.h> 10 #include <sys/eventfd.h>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 EGLDisplay egl_display, 200 EGLDisplay egl_display,
201 EGLContext egl_context, 201 EGLContext egl_context,
202 Client* client, 202 Client* client,
203 const base::Callback<bool(void)>& make_context_current) 203 const base::Callback<bool(void)>& make_context_current)
204 : child_message_loop_proxy_(base::MessageLoopProxy::current()), 204 : child_message_loop_proxy_(base::MessageLoopProxy::current()),
205 weak_this_(base::AsWeakPtr(this)), 205 weak_this_(base::AsWeakPtr(this)),
206 client_ptr_factory_(client), 206 client_ptr_factory_(client),
207 client_(client_ptr_factory_.GetWeakPtr()), 207 client_(client_ptr_factory_.GetWeakPtr()),
208 decoder_thread_("ExynosDecoderThread"), 208 decoder_thread_("ExynosDecoderThread"),
209 decoder_state_(kUninitialized), 209 decoder_state_(kUninitialized),
210 decoder_current_bitstream_buffer_(NULL),
211 decoder_delay_bitstream_buffer_id_(-1), 210 decoder_delay_bitstream_buffer_id_(-1),
212 decoder_current_input_buffer_(-1), 211 decoder_current_input_buffer_(-1),
213 decoder_decode_buffer_tasks_scheduled_(0), 212 decoder_decode_buffer_tasks_scheduled_(0),
214 decoder_frames_at_client_(0), 213 decoder_frames_at_client_(0),
215 decoder_flushing_(false), 214 decoder_flushing_(false),
216 decoder_partial_frame_pending_(false), 215 decoder_partial_frame_pending_(false),
217 mfc_fd_(-1), 216 mfc_fd_(-1),
218 mfc_input_streamon_(false), 217 mfc_input_streamon_(false),
219 mfc_input_buffer_queued_count_(0), 218 mfc_input_buffer_queued_count_(0),
220 mfc_output_streamon_(false), 219 mfc_output_streamon_(false),
(...skipping 2008 matching lines...) Expand 10 before | Expand all | Expand 10 after
2229 reqbufs.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; 2228 reqbufs.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
2230 reqbufs.memory = V4L2_MEMORY_DMABUF; 2229 reqbufs.memory = V4L2_MEMORY_DMABUF;
2231 if (ioctl(gsc_fd_, VIDIOC_REQBUFS, &reqbufs) != 0) 2230 if (ioctl(gsc_fd_, VIDIOC_REQBUFS, &reqbufs) != 0)
2232 DPLOG(ERROR) << "DestroyGscOutputBuffers(): ioctl() failed: VIDIOC_REQBUFS"; 2231 DPLOG(ERROR) << "DestroyGscOutputBuffers(): ioctl() failed: VIDIOC_REQBUFS";
2233 2232
2234 gsc_output_buffer_map_.clear(); 2233 gsc_output_buffer_map_.clear();
2235 gsc_free_output_buffers_.clear(); 2234 gsc_free_output_buffers_.clear();
2236 } 2235 }
2237 2236
2238 } // namespace content 2237 } // namespace content
OLDNEW
« 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