| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 std::map<base::TimeDelta, int32> bitstream_buffers_in_decoder_; | 197 std::map<base::TimeDelta, int32> bitstream_buffers_in_decoder_; |
| 198 | 198 |
| 199 // Keeps track of bitstream ids notified to the client with | 199 // Keeps track of bitstream ids notified to the client with |
| 200 // NotifyEndOfBitstreamBuffer() before getting output from the bitstream. | 200 // NotifyEndOfBitstreamBuffer() before getting output from the bitstream. |
| 201 std::list<int32> bitstreams_notified_in_advance_; | 201 std::list<int32> bitstreams_notified_in_advance_; |
| 202 | 202 |
| 203 // Owner of the GL context. Used to restore the context state. | 203 // Owner of the GL context. Used to restore the context state. |
| 204 base::WeakPtr<gpu::gles2::GLES2Decoder> gl_decoder_; | 204 base::WeakPtr<gpu::gles2::GLES2Decoder> gl_decoder_; |
| 205 | 205 |
| 206 // Repeating timer responsible for draining pending IO to the codec. | 206 // Repeating timer responsible for draining pending IO to the codec. |
| 207 base::RepeatingTimer<AndroidVideoDecodeAccelerator> io_timer_; | 207 base::RepeatingTimer io_timer_; |
| 208 | 208 |
| 209 // Backing strategy that we'll use to connect PictureBuffers to frames. | 209 // Backing strategy that we'll use to connect PictureBuffers to frames. |
| 210 scoped_ptr<BackingStrategy> strategy_; | 210 scoped_ptr<BackingStrategy> strategy_; |
| 211 | 211 |
| 212 // WeakPtrFactory for posting tasks back to |this|. | 212 // WeakPtrFactory for posting tasks back to |this|. |
| 213 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 213 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
| 214 | 214 |
| 215 friend class AndroidVideoDecodeAcceleratorTest; | 215 friend class AndroidVideoDecodeAcceleratorTest; |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 } // namespace content | 218 } // namespace content |
| 219 | 219 |
| 220 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 220 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |