| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 ~SHMBuffer(); | 95 ~SHMBuffer(); |
| 96 scoped_ptr<base::SharedMemory> shm; | 96 scoped_ptr<base::SharedMemory> shm; |
| 97 size_t size; | 97 size_t size; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 // A SHMBuffer and the DecoderBuffer its data came from. | 100 // A SHMBuffer and the DecoderBuffer its data came from. |
| 101 struct PendingDecoderBuffer { | 101 struct PendingDecoderBuffer { |
| 102 PendingDecoderBuffer(SHMBuffer* s, | 102 PendingDecoderBuffer(SHMBuffer* s, |
| 103 const scoped_refptr<DecoderBuffer>& b, | 103 const scoped_refptr<DecoderBuffer>& b, |
| 104 const DecodeCB& done_cb); | 104 const DecodeCB& done_cb); |
| 105 PendingDecoderBuffer(const PendingDecoderBuffer& other); |
| 105 ~PendingDecoderBuffer(); | 106 ~PendingDecoderBuffer(); |
| 106 SHMBuffer* shm_buffer; | 107 SHMBuffer* shm_buffer; |
| 107 scoped_refptr<DecoderBuffer> buffer; | 108 scoped_refptr<DecoderBuffer> buffer; |
| 108 DecodeCB done_cb; | 109 DecodeCB done_cb; |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 typedef std::map<int32_t, PictureBuffer> PictureBufferMap; | 112 typedef std::map<int32_t, PictureBuffer> PictureBufferMap; |
| 112 | 113 |
| 113 void DeliverFrame(const scoped_refptr<VideoFrame>& frame); | 114 void DeliverFrame(const scoped_refptr<VideoFrame>& frame); |
| 114 | 115 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // Bound to factories_->GetMessageLoop(). | 223 // Bound to factories_->GetMessageLoop(). |
| 223 // NOTE: Weak pointers must be invalidated before all other member variables. | 224 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 224 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; | 225 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; |
| 225 | 226 |
| 226 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
| 227 }; | 228 }; |
| 228 | 229 |
| 229 } // namespace media | 230 } // namespace media |
| 230 | 231 |
| 231 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| OLD | NEW |