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