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

Side by Side Diff: media/filters/frame_processor.cc

Issue 2815303006: Convert MediaLog from being ref counted to owned by WebMediaPlayer. (Closed)
Patch Set: Rebase. Created 3 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/filters/frame_processor.h ('k') | media/filters/frame_processor_unittest.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 #include "media/filters/frame_processor.h" 5 #include "media/filters/frame_processor.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <cstdlib> 9 #include <cstdlib>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 bool result = stream_->Append(processed_frames_); 155 bool result = stream_->Append(processed_frames_);
156 processed_frames_.clear(); 156 processed_frames_.clear();
157 157
158 DVLOG_IF(3, !result) << __func__ 158 DVLOG_IF(3, !result) << __func__
159 << "(): Failure appending processed frames to stream"; 159 << "(): Failure appending processed frames to stream";
160 160
161 return result; 161 return result;
162 } 162 }
163 163
164 FrameProcessor::FrameProcessor(const UpdateDurationCB& update_duration_cb, 164 FrameProcessor::FrameProcessor(const UpdateDurationCB& update_duration_cb,
165 const scoped_refptr<MediaLog>& media_log) 165 MediaLog* media_log)
166 : group_start_timestamp_(kNoTimestamp), 166 : group_start_timestamp_(kNoTimestamp),
167 update_duration_cb_(update_duration_cb), 167 update_duration_cb_(update_duration_cb),
168 media_log_(media_log) { 168 media_log_(media_log) {
169 DVLOG(2) << __func__ << "()"; 169 DVLOG(2) << __func__ << "()";
170 DCHECK(!update_duration_cb.is_null()); 170 DCHECK(!update_duration_cb.is_null());
171 } 171 }
172 172
173 FrameProcessor::~FrameProcessor() { 173 FrameProcessor::~FrameProcessor() {
174 DVLOG(2) << __func__ << "()"; 174 DVLOG(2) << __func__ << "()";
175 } 175 }
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 // Step 21 is currently handled differently. See SourceBufferState's 751 // Step 21 is currently handled differently. See SourceBufferState's
752 // |auto_update_timestamp_offset_|. 752 // |auto_update_timestamp_offset_|.
753 return true; 753 return true;
754 } 754 }
755 755
756 NOTREACHED(); 756 NOTREACHED();
757 return false; 757 return false;
758 } 758 }
759 759
760 } // namespace media 760 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/frame_processor.h ('k') | media/filters/frame_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698