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

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

Issue 832383004: Revert of Support multiple video decoders and encoders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
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
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 size_t bytes_used; 77 off_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
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
OLDNEW
« no previous file with comments | « content/common/gpu/media/v4l2_image_processor.cc ('k') | content/common/gpu/media/v4l2_video_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698