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> |
| 10 #include <stdint.h> |
9 | 11 |
10 #include <algorithm> | 12 #include <algorithm> |
11 #include <list> | 13 #include <list> |
12 #include <utility> | 14 #include <utility> |
13 | 15 |
14 #include "base/barrier_closure.h" | 16 #include "base/barrier_closure.h" |
15 #include "base/bind.h" | 17 #include "base/bind.h" |
16 #include "base/containers/stack_container.h" | 18 #include "base/containers/stack_container.h" |
17 #include "base/location.h" | 19 #include "base/location.h" |
| 20 #include "base/macros.h" |
18 #include "base/memory/linked_ptr.h" | 21 #include "base/memory/linked_ptr.h" |
19 #include "base/strings/stringprintf.h" | 22 #include "base/strings/stringprintf.h" |
20 #include "base/trace_event/memory_dump_provider.h" | 23 #include "base/trace_event/memory_dump_provider.h" |
21 #include "base/trace_event/trace_event.h" | 24 #include "base/trace_event/trace_event.h" |
22 #include "gpu/GLES2/gl2extchromium.h" | 25 #include "gpu/GLES2/gl2extchromium.h" |
23 #include "gpu/command_buffer/client/gles2_interface.h" | 26 #include "gpu/command_buffer/client/gles2_interface.h" |
24 #include "media/renderers/gpu_video_accelerator_factories.h" | 27 #include "media/renderers/gpu_video_accelerator_factories.h" |
25 #include "third_party/libyuv/include/libyuv.h" | 28 #include "third_party/libyuv/include/libyuv.h" |
26 #include "ui/gfx/buffer_format_util.h" | 29 #include "ui/gfx/buffer_format_util.h" |
27 #include "ui/gl/trace_util.h" | 30 #include "ui/gl/trace_util.h" |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 } | 741 } |
739 | 742 |
740 void GpuMemoryBufferVideoFramePool::MaybeCreateHardwareFrame( | 743 void GpuMemoryBufferVideoFramePool::MaybeCreateHardwareFrame( |
741 const scoped_refptr<VideoFrame>& video_frame, | 744 const scoped_refptr<VideoFrame>& video_frame, |
742 const FrameReadyCB& frame_ready_cb) { | 745 const FrameReadyCB& frame_ready_cb) { |
743 DCHECK(video_frame); | 746 DCHECK(video_frame); |
744 pool_impl_->CreateHardwareFrame(video_frame, frame_ready_cb); | 747 pool_impl_->CreateHardwareFrame(video_frame, frame_ready_cb); |
745 } | 748 } |
746 | 749 |
747 } // namespace media | 750 } // namespace media |
OLD | NEW |