| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 82 |
| 83 // VideoDecodeAccelerator::Client implementation. | 83 // VideoDecodeAccelerator::Client implementation. |
| 84 void ProvidePictureBuffers(uint32_t count, | 84 void ProvidePictureBuffers(uint32_t count, |
| 85 uint32_t textures_per_buffer, |
| 85 const gfx::Size& size, | 86 const gfx::Size& size, |
| 86 uint32_t texture_target) override; | 87 uint32_t texture_target) override; |
| 87 void DismissPictureBuffer(int32_t id) override; | 88 void DismissPictureBuffer(int32_t id) override; |
| 88 void PictureReady(const media::Picture& picture) override; | 89 void PictureReady(const media::Picture& picture) override; |
| 89 void NotifyEndOfBitstreamBuffer(int32_t id) override; | 90 void NotifyEndOfBitstreamBuffer(int32_t id) override; |
| 90 void NotifyFlushDone() override; | 91 void NotifyFlushDone() override; |
| 91 void NotifyResetDone() override; | 92 void NotifyResetDone() override; |
| 92 void NotifyError(media::VideoDecodeAccelerator::Error error) override; | 93 void NotifyError(media::VideoDecodeAccelerator::Error error) override; |
| 93 | 94 |
| 94 private: | 95 private: |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // Must be destroyed, or invalidated, on |vda_loop_proxy_| | 282 // Must be destroyed, or invalidated, on |vda_loop_proxy_| |
| 282 // NOTE: Weak pointers must be invalidated before all other member variables. | 283 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 283 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; | 284 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; |
| 284 | 285 |
| 285 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); | 286 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); |
| 286 }; | 287 }; |
| 287 | 288 |
| 288 } // namespace content | 289 } // namespace content |
| 289 | 290 |
| 290 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 291 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
| OLD | NEW |