Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: content/renderer/media/rtc_video_decoder_bridge_tv.h

Issue 20646003: To dropp the decode done callback in RTCVideoDecoderBridgeTv. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_BRIDGE_TV_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_BRIDGE_TV_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_BRIDGE_TV_H_ 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_BRIDGE_TV_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 21 matching lines...) Expand all
32 bool missing_frames, 32 bool missing_frames,
33 const webrtc::RTPFragmentationHeader* fragmentation, 33 const webrtc::RTPFragmentationHeader* fragmentation,
34 const webrtc::CodecSpecificInfo* codec_specific_info, 34 const webrtc::CodecSpecificInfo* codec_specific_info,
35 int64_t render_time_ms) OVERRIDE; 35 int64_t render_time_ms) OVERRIDE;
36 virtual int32_t RegisterDecodeCompleteCallback( 36 virtual int32_t RegisterDecodeCompleteCallback(
37 webrtc::DecodedImageCallback* callback) OVERRIDE; 37 webrtc::DecodedImageCallback* callback) OVERRIDE;
38 virtual int32_t Release() OVERRIDE; 38 virtual int32_t Release() OVERRIDE;
39 virtual int32_t Reset() OVERRIDE; 39 virtual int32_t Reset() OVERRIDE;
40 40
41 private: 41 private:
42 static void RunDecodeCompleteCallback(webrtc::DecodedImageCallback* callback, 42 void RunDecodeCompleteCallback(int64_t timestamp);
43 int64_t timestamp,
44 gfx::Size size);
45 43
46 // The factory outlives this object, so weak pointer is fine. 44 // The factory outlives this object, so weak pointer is fine.
47 RTCVideoDecoderFactoryTv* factory_; 45 RTCVideoDecoderFactoryTv* factory_;
48 46
49 gfx::Size size_; 47 gfx::Size size_;
50 bool is_initialized_; 48 bool is_initialized_;
51 bool first_frame_; 49 bool first_frame_;
52 webrtc::DecodedImageCallback* decode_complete_callback_; 50 webrtc::DecodedImageCallback* decode_complete_callback_;
53 int64_t timestamp_offset_millis_; 51 int64_t timestamp_offset_millis_;
54 52
55 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoderBridgeTv); 53 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoderBridgeTv);
56 }; 54 };
57 55
58 } // namespace content 56 } // namespace content
59 57
60 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_BRIDGE_TV_H_ 58 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_BRIDGE_TV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698