| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool missingFrames, | 72 bool missingFrames, |
| 73 const webrtc::RTPFragmentationHeader* fragmentation, | 73 const webrtc::RTPFragmentationHeader* fragmentation, |
| 74 const webrtc::CodecSpecificInfo* codecSpecificInfo = NULL, | 74 const webrtc::CodecSpecificInfo* codecSpecificInfo = NULL, |
| 75 int64_t renderTimeMs = -1) override; | 75 int64_t renderTimeMs = -1) override; |
| 76 // Called on WebRTC DecodingThread. | 76 // Called on WebRTC DecodingThread. |
| 77 int32_t RegisterDecodeCompleteCallback( | 77 int32_t RegisterDecodeCompleteCallback( |
| 78 webrtc::DecodedImageCallback* callback) override; | 78 webrtc::DecodedImageCallback* callback) override; |
| 79 // Called on Chrome_libJingle_WorkerThread. The child thread is blocked while | 79 // Called on Chrome_libJingle_WorkerThread. The child thread is blocked while |
| 80 // this runs. | 80 // this runs. |
| 81 int32_t Release() override; | 81 int32_t Release() override; |
| 82 // Called on Chrome_libJingle_WorkerThread. The child thread is blocked while | |
| 83 // this runs. | |
| 84 int32_t Reset() override; | |
| 85 | 82 |
| 86 // VideoDecodeAccelerator::Client implementation. | 83 // VideoDecodeAccelerator::Client implementation. |
| 87 void ProvidePictureBuffers(uint32_t count, | 84 void ProvidePictureBuffers(uint32_t count, |
| 88 const gfx::Size& size, | 85 const gfx::Size& size, |
| 89 uint32_t texture_target) override; | 86 uint32_t texture_target) override; |
| 90 void DismissPictureBuffer(int32_t id) override; | 87 void DismissPictureBuffer(int32_t id) override; |
| 91 void PictureReady(const media::Picture& picture) override; | 88 void PictureReady(const media::Picture& picture) override; |
| 92 void NotifyEndOfBitstreamBuffer(int32_t id) override; | 89 void NotifyEndOfBitstreamBuffer(int32_t id) override; |
| 93 void NotifyFlushDone() override; | 90 void NotifyFlushDone() override; |
| 94 void NotifyResetDone() override; | 91 void NotifyResetDone() override; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 // Must be destroyed, or invalidated, on |vda_loop_proxy_| | 281 // Must be destroyed, or invalidated, on |vda_loop_proxy_| |
| 285 // NOTE: Weak pointers must be invalidated before all other member variables. | 282 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 286 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; | 283 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; |
| 287 | 284 |
| 288 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); | 285 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); |
| 289 }; | 286 }; |
| 290 | 287 |
| 291 } // namespace content | 288 } // namespace content |
| 292 | 289 |
| 293 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 290 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
| OLD | NEW |