OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "media/video/gpu_memory_buffer_video_frame_pool.h" | 5 #include "media/video/gpu_memory_buffer_video_frame_pool.h" |
6 | 6 |
7 #include <GLES2/gl2.h> | 7 #include <GLES2/gl2.h> |
8 #include <GLES2/gl2ext.h> | 8 #include <GLES2/gl2ext.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <list> | 13 #include <list> |
14 #include <memory> | 14 #include <memory> |
15 #include <utility> | 15 #include <utility> |
16 | 16 |
17 #include "base/barrier_closure.h" | 17 #include "base/barrier_closure.h" |
18 #include "base/bind.h" | 18 #include "base/bind.h" |
19 #include "base/containers/stack_container.h" | 19 #include "base/containers/stack_container.h" |
20 #include "base/location.h" | 20 #include "base/location.h" |
21 #include "base/macros.h" | 21 #include "base/macros.h" |
22 #include "base/memory/linked_ptr.h" | |
23 #include "base/strings/stringprintf.h" | 22 #include "base/strings/stringprintf.h" |
24 #include "base/trace_event/memory_dump_manager.h" | 23 #include "base/trace_event/memory_dump_manager.h" |
25 #include "base/trace_event/memory_dump_provider.h" | 24 #include "base/trace_event/memory_dump_provider.h" |
26 #include "base/trace_event/trace_event.h" | 25 #include "base/trace_event/trace_event.h" |
27 #include "gpu/GLES2/gl2extchromium.h" | 26 #include "gpu/GLES2/gl2extchromium.h" |
28 #include "gpu/command_buffer/client/gles2_interface.h" | 27 #include "gpu/command_buffer/client/gles2_interface.h" |
29 #include "media/base/bind_to_current_loop.h" | 28 #include "media/base/bind_to_current_loop.h" |
30 #include "media/renderers/gpu_video_accelerator_factories.h" | 29 #include "media/renderers/gpu_video_accelerator_factories.h" |
31 #include "third_party/libyuv/include/libyuv.h" | 30 #include "third_party/libyuv/include/libyuv.h" |
32 #include "ui/gfx/buffer_format_util.h" | 31 #include "ui/gfx/buffer_format_util.h" |
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 } | 825 } |
827 | 826 |
828 void GpuMemoryBufferVideoFramePool::MaybeCreateHardwareFrame( | 827 void GpuMemoryBufferVideoFramePool::MaybeCreateHardwareFrame( |
829 const scoped_refptr<VideoFrame>& video_frame, | 828 const scoped_refptr<VideoFrame>& video_frame, |
830 const FrameReadyCB& frame_ready_cb) { | 829 const FrameReadyCB& frame_ready_cb) { |
831 DCHECK(video_frame); | 830 DCHECK(video_frame); |
832 pool_impl_->CreateHardwareFrame(video_frame, frame_ready_cb); | 831 pool_impl_->CreateHardwareFrame(video_frame, frame_ready_cb); |
833 } | 832 } |
834 | 833 |
835 } // namespace media | 834 } // namespace media |
OLD | NEW |