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

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

Issue 19398004: Use a direct include of the shared_memory header in content/browser/, content/child/, content/commo… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
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>
11 #include <sys/ioctl.h> 11 #include <sys/ioctl.h>
12 #include <sys/mman.h> 12 #include <sys/mman.h>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/debug/trace_event.h" 15 #include "base/debug/trace_event.h"
16 #include "base/memory/shared_memory.h"
16 #include "base/message_loop.h" 17 #include "base/message_loop.h"
17 #include "base/message_loop/message_loop_proxy.h" 18 #include "base/message_loop/message_loop_proxy.h"
18 #include "base/posix/eintr_wrapper.h" 19 #include "base/posix/eintr_wrapper.h"
19 #include "base/shared_memory.h"
20 #include "content/common/gpu/media/exynos_video_decode_accelerator.h" 20 #include "content/common/gpu/media/exynos_video_decode_accelerator.h"
21 #include "content/common/gpu/media/h264_parser.h" 21 #include "content/common/gpu/media/h264_parser.h"
22 #include "ui/gl/scoped_binders.h" 22 #include "ui/gl/scoped_binders.h"
23 23
24 namespace content { 24 namespace content {
25 25
26 #define NOTIFY_ERROR(x) \ 26 #define NOTIFY_ERROR(x) \
27 do { \ 27 do { \
28 SetDecoderState(kError); \ 28 SetDecoderState(kError); \
29 DLOG(ERROR) << "calling NotifyError(): " << x; \ 29 DLOG(ERROR) << "calling NotifyError(): " << x; \
(...skipping 2198 matching lines...) Expand 10 before | Expand all | Expand 10 after
2228 reqbufs.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; 2228 reqbufs.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
2229 reqbufs.memory = V4L2_MEMORY_DMABUF; 2229 reqbufs.memory = V4L2_MEMORY_DMABUF;
2230 if (ioctl(gsc_fd_, VIDIOC_REQBUFS, &reqbufs) != 0) 2230 if (ioctl(gsc_fd_, VIDIOC_REQBUFS, &reqbufs) != 0)
2231 DPLOG(ERROR) << "DestroyGscOutputBuffers(): ioctl() failed: VIDIOC_REQBUFS"; 2231 DPLOG(ERROR) << "DestroyGscOutputBuffers(): ioctl() failed: VIDIOC_REQBUFS";
2232 2232
2233 gsc_output_buffer_map_.clear(); 2233 gsc_output_buffer_map_.clear();
2234 gsc_free_output_buffers_.clear(); 2234 gsc_free_output_buffers_.clear();
2235 } 2235 }
2236 2236
2237 } // namespace content 2237 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/dxva_video_decode_accelerator.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698