OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CONTENT_RENDERER_GPU_VIDEO_DECODER_HOST_H_ | 5 #ifndef CONTENT_RENDERER_GPU_GPU_VIDEO_DECODER_HOST_H_ |
6 #define CONTENT_RENDERER_GPU_VIDEO_DECODER_HOST_H_ | 6 #define CONTENT_RENDERER_GPU_GPU_VIDEO_DECODER_HOST_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
13 #include "content/renderer/gpu_channel_host.h" | 13 #include "content/renderer/gpu/gpu_channel_host.h" |
14 #include "media/base/buffers.h" | 14 #include "media/base/buffers.h" |
15 #include "media/base/video_frame.h" | 15 #include "media/base/video_frame.h" |
16 #include "media/video/video_decode_engine.h" | 16 #include "media/video/video_decode_engine.h" |
17 | 17 |
18 using media::VideoFrame; | 18 using media::VideoFrame; |
19 using media::Buffer; | 19 using media::Buffer; |
20 | 20 |
21 class MessageRouter; | 21 class MessageRouter; |
22 struct GpuVideoDecoderInitDoneParam; | 22 struct GpuVideoDecoderInitDoneParam; |
23 | 23 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 // The list of video frames allocated by VideoDecodeContext. | 156 // The list of video frames allocated by VideoDecodeContext. |
157 std::vector<scoped_refptr<media::VideoFrame> > video_frames_; | 157 std::vector<scoped_refptr<media::VideoFrame> > video_frames_; |
158 | 158 |
159 // The mapping between video frame ID and a video frame. | 159 // The mapping between video frame ID and a video frame. |
160 VideoFrameMap video_frame_map_; | 160 VideoFrameMap video_frame_map_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoderHost); | 162 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoderHost); |
163 }; | 163 }; |
164 | 164 |
165 #endif // CONTENT_RENDERER_GPU_VIDEO_DECODER_HOST_H_ | 165 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODER_HOST_H_ |
OLD | NEW |