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

Side by Side Diff: media/cast/video_sender/video_encoder.cc

Issue 74133002: Cast: Removed unnecessary ref counters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge TOT Created 7 years 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 #include "media/cast/video_sender/video_encoder.h" 5 #include "media/cast/video_sender/video_encoder.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h"
9 #include "media/base/video_frame.h" 10 #include "media/base/video_frame.h"
10 11
11 namespace media { 12 namespace media {
12 namespace cast { 13 namespace cast {
13 14
14 VideoEncoder::VideoEncoder(scoped_refptr<CastEnvironment> cast_environment, 15 VideoEncoder::VideoEncoder(scoped_refptr<CastEnvironment> cast_environment,
15 const VideoSenderConfig& video_config, 16 const VideoSenderConfig& video_config,
16 uint8 max_unacked_frames) 17 uint8 max_unacked_frames)
17 : video_config_(video_config), 18 : video_config_(video_config),
18 cast_environment_(cast_environment), 19 cast_environment_(cast_environment),
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void VideoEncoder::LatestFrameIdToReference(uint32 frame_id) { 113 void VideoEncoder::LatestFrameIdToReference(uint32 frame_id) {
113 dynamic_config_.latest_frame_id_to_reference = frame_id; 114 dynamic_config_.latest_frame_id_to_reference = frame_id;
114 } 115 }
115 116
116 int VideoEncoder::NumberOfSkippedFrames() const { 117 int VideoEncoder::NumberOfSkippedFrames() const {
117 return skip_count_; 118 return skip_count_;
118 } 119 }
119 120
120 } // namespace cast 121 } // namespace cast
121 } // namespace media 122 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/video_sender/video_encoder.h ('k') | media/cast/video_sender/video_encoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698