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

Side by Side Diff: webrtc/api/statstypes.cc

Issue 2423823003: Implement framesDecoded stat in video receive ssrc stats. (Closed)
Patch Set: Add #include <memory> to receive_statistics_proxy_unittest.cc. Created 4 years, 1 month 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 | « webrtc/api/statstypes.h ('k') | webrtc/media/base/mediachannel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 case kStatsValueNameTransportId: 386 case kStatsValueNameTransportId:
387 return "transportId"; 387 return "transportId";
388 case kStatsValueNameSelectedCandidatePairId: 388 case kStatsValueNameSelectedCandidatePairId:
389 return "selectedCandidatePairId"; 389 return "selectedCandidatePairId";
390 case kStatsValueNameSsrc: 390 case kStatsValueNameSsrc:
391 return "ssrc"; 391 return "ssrc";
392 case kStatsValueNameState: 392 case kStatsValueNameState:
393 return "state"; 393 return "state";
394 case kStatsValueNameDataChannelId: 394 case kStatsValueNameDataChannelId:
395 return "datachannelid"; 395 return "datachannelid";
396 case kStatsValueNameFramesDecoded:
397 return "framesDecoded";
396 case kStatsValueNameFramesEncoded: 398 case kStatsValueNameFramesEncoded:
397 return "framesEncoded"; 399 return "framesEncoded";
398 case kStatsValueNameCodecImplementationName: 400 case kStatsValueNameCodecImplementationName:
399 return "codecImplementationName"; 401 return "codecImplementationName";
400 case kStatsValueNameMediaType: 402 case kStatsValueNameMediaType:
401 return "mediaType"; 403 return "mediaType";
402 // 'goog' prefixed constants. 404 // 'goog' prefixed constants.
403 case kStatsValueNameAccelerateRate: 405 case kStatsValueNameAccelerateRate:
404 return "googAccelerateRate"; 406 return "googAccelerateRate";
405 case kStatsValueNameActiveConnection: 407 case kStatsValueNameActiveConnection:
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 // Looks for a report with the given |id|. If one is not found, NULL 778 // Looks for a report with the given |id|. If one is not found, NULL
777 // will be returned. 779 // will be returned.
778 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { 780 StatsReport* StatsCollection::Find(const StatsReport::Id& id) {
779 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 781 RTC_DCHECK(thread_checker_.CalledOnValidThread());
780 Container::iterator it = std::find_if(list_.begin(), list_.end(), 782 Container::iterator it = std::find_if(list_.begin(), list_.end(),
781 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); 783 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); });
782 return it == list_.end() ? nullptr : *it; 784 return it == list_.end() ? nullptr : *it;
783 } 785 }
784 786
785 } // namespace webrtc 787 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/statstypes.h ('k') | webrtc/media/base/mediachannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698