OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <string.h> |
10 #include <sys/eventfd.h> | 11 #include <sys/eventfd.h> |
11 #include <sys/ioctl.h> | 12 #include <sys/ioctl.h> |
12 #include <sys/mman.h> | 13 #include <sys/mman.h> |
13 | 14 |
14 #include "base/bind.h" | 15 #include "base/bind.h" |
15 #include "base/command_line.h" | 16 #include "base/command_line.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "base/memory/shared_memory.h" | 18 #include "base/memory/shared_memory.h" |
18 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
19 #include "base/numerics/safe_conversions.h" | 20 #include "base/numerics/safe_conversions.h" |
(...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2044 | 2045 |
2045 void V4L2VideoDecodeAccelerator::PictureCleared() { | 2046 void V4L2VideoDecodeAccelerator::PictureCleared() { |
2046 DVLOG(3) << "PictureCleared(). clearing count=" << picture_clearing_count_; | 2047 DVLOG(3) << "PictureCleared(). clearing count=" << picture_clearing_count_; |
2047 DCHECK_EQ(decoder_thread_.message_loop(), base::MessageLoop::current()); | 2048 DCHECK_EQ(decoder_thread_.message_loop(), base::MessageLoop::current()); |
2048 DCHECK_GT(picture_clearing_count_, 0); | 2049 DCHECK_GT(picture_clearing_count_, 0); |
2049 picture_clearing_count_--; | 2050 picture_clearing_count_--; |
2050 SendPictureReady(); | 2051 SendPictureReady(); |
2051 } | 2052 } |
2052 | 2053 |
2053 } // namespace content | 2054 } // namespace content |
OLD | NEW |