OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 scoped_refptr<base::MessageLoopProxy> gvd_loop_proxy_; | 152 scoped_refptr<base::MessageLoopProxy> gvd_loop_proxy_; |
153 | 153 |
154 // Message loop on which to makes all calls to vda_. (beware this loop may be | 154 // Message loop on which to makes all calls to vda_. (beware this loop may be |
155 // paused during the Pause/Flush/Stop dance PipelineImpl::Stop() goes | 155 // paused during the Pause/Flush/Stop dance PipelineImpl::Stop() goes |
156 // through). | 156 // through). |
157 scoped_refptr<base::MessageLoopProxy> vda_loop_proxy_; | 157 scoped_refptr<base::MessageLoopProxy> vda_loop_proxy_; |
158 | 158 |
159 scoped_refptr<Factories> factories_; | 159 scoped_refptr<Factories> factories_; |
160 | 160 |
161 // Populated during Initialize() (on success) and unchanged thereafter. | 161 // Populated during Initialize() (on success) and unchanged thereafter. |
162 scoped_refptr<VideoDecodeAccelerator> vda_; | 162 scoped_ptr<VideoDecodeAccelerator> vda_; |
163 | 163 |
164 // Callbacks that are !is_null() only during their respective operation being | 164 // Callbacks that are !is_null() only during their respective operation being |
165 // asynchronously executed. | 165 // asynchronously executed. |
166 ReadCB pending_read_cb_; | 166 ReadCB pending_read_cb_; |
167 base::Closure pending_reset_cb_; | 167 base::Closure pending_reset_cb_; |
168 | 168 |
169 State state_; | 169 State state_; |
170 | 170 |
171 // Is a demuxer read in flight? | 171 // Is a demuxer read in flight? |
172 bool demuxer_read_in_progress_; | 172 bool demuxer_read_in_progress_; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 210 |
211 // Indicates decoding error occurred. | 211 // Indicates decoding error occurred. |
212 bool error_occured_; | 212 bool error_occured_; |
213 | 213 |
214 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 214 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
215 }; | 215 }; |
216 | 216 |
217 } // namespace media | 217 } // namespace media |
218 | 218 |
219 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 219 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
OLD | NEW |