| 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> |
| 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/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/debug/trace_event.h" | |
| 17 #include "base/memory/shared_memory.h" | 16 #include "base/memory/shared_memory.h" |
| 18 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
| 19 #include "base/message_loop/message_loop_proxy.h" | 18 #include "base/message_loop/message_loop_proxy.h" |
| 20 #include "base/numerics/safe_conversions.h" | 19 #include "base/numerics/safe_conversions.h" |
| 20 #include "base/trace_event/trace_event.h" |
| 21 #include "content/common/gpu/media/v4l2_video_decode_accelerator.h" | 21 #include "content/common/gpu/media/v4l2_video_decode_accelerator.h" |
| 22 #include "media/base/media_switches.h" | 22 #include "media/base/media_switches.h" |
| 23 #include "media/filters/h264_parser.h" | 23 #include "media/filters/h264_parser.h" |
| 24 #include "ui/gl/scoped_binders.h" | 24 #include "ui/gl/scoped_binders.h" |
| 25 | 25 |
| 26 #define NOTIFY_ERROR(x) \ | 26 #define NOTIFY_ERROR(x) \ |
| 27 do { \ | 27 do { \ |
| 28 LOG(ERROR) << "Setting error state:" << x; \ | 28 LOG(ERROR) << "Setting error state:" << x; \ |
| 29 SetErrorState(x); \ | 29 SetErrorState(x); \ |
| 30 } while (0) | 30 } while (0) |
| (...skipping 1944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1975 gfx::Size new_size(base::checked_cast<int>(format.fmt.pix_mp.width), | 1975 gfx::Size new_size(base::checked_cast<int>(format.fmt.pix_mp.width), |
| 1976 base::checked_cast<int>(format.fmt.pix_mp.height)); | 1976 base::checked_cast<int>(format.fmt.pix_mp.height)); |
| 1977 if (frame_buffer_size_ != new_size) { | 1977 if (frame_buffer_size_ != new_size) { |
| 1978 DVLOG(3) << "IsResolutionChangeNecessary(): Resolution change detected"; | 1978 DVLOG(3) << "IsResolutionChangeNecessary(): Resolution change detected"; |
| 1979 return true; | 1979 return true; |
| 1980 } | 1980 } |
| 1981 return false; | 1981 return false; |
| 1982 } | 1982 } |
| 1983 | 1983 |
| 1984 } // namespace content | 1984 } // namespace content |
| OLD | NEW |