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

Side by Side Diff: media/cast/sender/h264_vt_encoder.h

Issue 1905763002: Convert //media/cast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « media/cast/sender/frame_sender.cc ('k') | media/cast/sender/h264_vt_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CAST_SENDER_H264_VT_ENCODER_H_ 5 #ifndef MEDIA_CAST_SENDER_H264_VT_ENCODER_H_
6 #define MEDIA_CAST_SENDER_H264_VT_ENCODER_H_ 6 #define MEDIA_CAST_SENDER_H264_VT_ENCODER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/mac/scoped_cftyperef.h" 10 #include "base/mac/scoped_cftyperef.h"
(...skipping 30 matching lines...) Expand all
41 const StatusChangeCallback& status_change_cb); 41 const StatusChangeCallback& status_change_cb);
42 ~H264VideoToolboxEncoder() final; 42 ~H264VideoToolboxEncoder() final;
43 43
44 // media::cast::VideoEncoder implementation 44 // media::cast::VideoEncoder implementation
45 bool EncodeVideoFrame( 45 bool EncodeVideoFrame(
46 const scoped_refptr<media::VideoFrame>& video_frame, 46 const scoped_refptr<media::VideoFrame>& video_frame,
47 const base::TimeTicks& reference_time, 47 const base::TimeTicks& reference_time,
48 const FrameEncodedCallback& frame_encoded_callback) final; 48 const FrameEncodedCallback& frame_encoded_callback) final;
49 void SetBitRate(int new_bit_rate) final; 49 void SetBitRate(int new_bit_rate) final;
50 void GenerateKeyFrame() final; 50 void GenerateKeyFrame() final;
51 scoped_ptr<VideoFrameFactory> CreateVideoFrameFactory() final; 51 std::unique_ptr<VideoFrameFactory> CreateVideoFrameFactory() final;
52 void EmitFrames() final; 52 void EmitFrames() final;
53 53
54 // base::PowerObserver 54 // base::PowerObserver
55 void OnSuspend() final; 55 void OnSuspend() final;
56 void OnResume() final; 56 void OnResume() final;
57 57
58 private: 58 private:
59 // VideoFrameFactory tied to the VideoToolbox encoder. 59 // VideoFrameFactory tied to the VideoToolbox encoder.
60 class VideoFrameFactoryImpl; 60 class VideoFrameFactoryImpl;
61 61
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // NOTE: Weak pointers must be invalidated before all other member variables. 122 // NOTE: Weak pointers must be invalidated before all other member variables.
123 base::WeakPtrFactory<H264VideoToolboxEncoder> weak_factory_; 123 base::WeakPtrFactory<H264VideoToolboxEncoder> weak_factory_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(H264VideoToolboxEncoder); 125 DISALLOW_COPY_AND_ASSIGN(H264VideoToolboxEncoder);
126 }; 126 };
127 127
128 } // namespace cast 128 } // namespace cast
129 } // namespace media 129 } // namespace media
130 130
131 #endif // MEDIA_CAST_SENDER_H264_VT_ENCODER_H_ 131 #endif // MEDIA_CAST_SENDER_H264_VT_ENCODER_H_
OLDNEW
« no previous file with comments | « media/cast/sender/frame_sender.cc ('k') | media/cast/sender/h264_vt_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698