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 <sys/eventfd.h> | 10 #include <sys/eventfd.h> |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 base::WeakPtr<Client>& client, | 67 base::WeakPtr<Client>& client, |
68 scoped_refptr<base::MessageLoopProxy>& client_message_loop_proxy, | 68 scoped_refptr<base::MessageLoopProxy>& client_message_loop_proxy, |
69 base::SharedMemory* shm, | 69 base::SharedMemory* shm, |
70 size_t size, | 70 size_t size, |
71 int32 input_id); | 71 int32 input_id); |
72 ~BitstreamBufferRef(); | 72 ~BitstreamBufferRef(); |
73 const base::WeakPtr<Client> client; | 73 const base::WeakPtr<Client> client; |
74 const scoped_refptr<base::MessageLoopProxy> client_message_loop_proxy; | 74 const scoped_refptr<base::MessageLoopProxy> client_message_loop_proxy; |
75 const scoped_ptr<base::SharedMemory> shm; | 75 const scoped_ptr<base::SharedMemory> shm; |
76 const size_t size; | 76 const size_t size; |
77 off_t bytes_used; | 77 size_t bytes_used; |
78 const int32 input_id; | 78 const int32 input_id; |
79 }; | 79 }; |
80 | 80 |
81 struct V4L2VideoDecodeAccelerator::EGLSyncKHRRef { | 81 struct V4L2VideoDecodeAccelerator::EGLSyncKHRRef { |
82 EGLSyncKHRRef(EGLDisplay egl_display, EGLSyncKHR egl_sync); | 82 EGLSyncKHRRef(EGLDisplay egl_display, EGLSyncKHR egl_sync); |
83 ~EGLSyncKHRRef(); | 83 ~EGLSyncKHRRef(); |
84 EGLDisplay const egl_display; | 84 EGLDisplay const egl_display; |
85 EGLSyncKHR egl_sync; | 85 EGLSyncKHR egl_sync; |
86 }; | 86 }; |
87 | 87 |
(...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 gfx::Size new_size(base::checked_cast<int>(format.fmt.pix_mp.width), | 1934 gfx::Size new_size(base::checked_cast<int>(format.fmt.pix_mp.width), |
1935 base::checked_cast<int>(format.fmt.pix_mp.height)); | 1935 base::checked_cast<int>(format.fmt.pix_mp.height)); |
1936 if (frame_buffer_size_ != new_size) { | 1936 if (frame_buffer_size_ != new_size) { |
1937 DVLOG(3) << "IsResolutionChangeNecessary(): Resolution change detected"; | 1937 DVLOG(3) << "IsResolutionChangeNecessary(): Resolution change detected"; |
1938 return true; | 1938 return true; |
1939 } | 1939 } |
1940 return false; | 1940 return false; |
1941 } | 1941 } |
1942 | 1942 |
1943 } // namespace content | 1943 } // namespace content |
OLD | NEW |